Force smtp_port to int

This commit is contained in:
David Bomba 2025-01-17 08:49:25 +11:00
parent ab6435594a
commit aad7a0eb57
1 changed files with 1 additions and 1 deletions

View File

@ -621,7 +621,7 @@ class Email implements ShouldQueue
$company = $this->company; $company = $this->company;
$smtp_host = $company->smtp_host ?? ''; $smtp_host = $company->smtp_host ?? '';
$smtp_port = $company->smtp_port ?? 0; $smtp_port = (int)$company->smtp_port ?? 0;
$smtp_username = $company->smtp_username ?? ''; $smtp_username = $company->smtp_username ?? '';
$smtp_password = $company->smtp_password ?? ''; $smtp_password = $company->smtp_password ?? '';
$smtp_encryption = $company->smtp_encryption ?? 'tls'; $smtp_encryption = $company->smtp_encryption ?? 'tls';