更新时间:2023-11-16 16:00:04
最终解决了
$transport = Swift_smtpTransport::newInstance( "mx1.hostinger.co.uk" , 2525 );
实际上应该是
$transport = Swift_SmtpTransport::newyInstance( "mx1.hostinger.co.uk" , 2525 );
然后我的托管服务提供商不允许在我的计划中通过 SMTP 发送邮件.
and then afterwards that my hosting provider does not allow mail to be sent by SMTP on my plan.