Fatal error: Class 'Swift_smtpTransport' not found in

后端 未结 1 1532
没有蜡笔的小新
没有蜡笔的小新 2021-01-23 03:52

I am trying to add the functionality to send my customers emails from my website backend and am attempting to use swiftmailer to do this. I unfortunately keep getting an error

1条回答
  •  北海茫月
    2021-01-23 04:45

    Eventually worked out that

    $transport = Swift_smtpTransport::newInstance( "mx1.hostinger.co.uk" , 2525 );
    

    Should in fact be

    $transport = Swift_SmtpTransport::newyInstance( "mx1.hostinger.co.uk" , 2525 );
    

    and then afterwards that my hosting provider does not allow mail to be sent by SMTP on my plan.

    0 讨论(0)
提交回复
热议问题