Browse Source

修复发邮件问题

tushan 8 months ago
parent
commit
353fc0115f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      extend/Mail.php

+ 1 - 1
extend/Mail.php

@@ -20,7 +20,7 @@ class Mail
             'username' => SettingModel::Config('smtp_email'),
             'password' => SettingModel::Config('smtp_password'),
         ];
-        if ($option['port'] === 465) {
+        if ((int)$option['port'] === 465) {
             $option['secure'] = 'ssl';
         }
         $mailer = new SmtpMailer($option);