diff --git a/app/Services/Email/Email.php b/app/Services/Email/Email.php index 8fb90f0c7a..ff6131fc1c 100644 --- a/app/Services/Email/Email.php +++ b/app/Services/Email/Email.php @@ -621,7 +621,7 @@ class Email implements ShouldQueue $company = $this->company; $smtp_host = $company->smtp_host ?? ''; - $smtp_port = $company->smtp_port ?? 0; + $smtp_port = (int)$company->smtp_port ?? 0; $smtp_username = $company->smtp_username ?? ''; $smtp_password = $company->smtp_password ?? ''; $smtp_encryption = $company->smtp_encryption ?? 'tls';