我已经使用composer下载了Swift-mailer,但是当我去测试它时,我总是收到错误消息。<?>setBody('Here is the message itself');
$result = $mailer->send($message);
我也尝试使用警告: D:\xampp\htdocs\dashboard\JBT-Emails\sendmail.php (/path/ to /
with message 'The service "monolog.handler.mojhandler" has a dependency on a non-existent service "swiftmailer.transport.realComponent\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass.php on line 59这
250 but got an empty response in public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport在这之前几乎一年的时间里,这个方法运行得无懈可击,所以我有点困惑是什么导致了这个问题。我最近没有更改任何凭据,也没有更改任何代码或配置。我还在我的谷歌账户中创建了一个新的应用程序密码,看看这是否能解决这个问题