From aad7a0eb57124bb787f29dcbe0baa2fc453e7b3d Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 17 Jan 2025 08:49:25 +1100 Subject: [PATCH] Force smtp_port to int --- app/Services/Email/Email.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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';