我们的电子邮件无法使用带有 Redis 队列的 Laravel 发送.
Our emails are failing to send using Laravel with a Redis Queue.
触发错误的代码是这样的:->onQueue('emails')
The code that triggers the error is this: ->onQueue('emails')
$job = (new SendNewEmail($sender, $recipients))->onQueue('emails');
$job_result = $this->dispatch($job);
结合这个在工作中:
use InteractsWithQueue;
我们的错误信息是:
Feb 09 17:15:57 laravel: message repeated 7947 times: [ production.ERROR: exception 'Swift_TransportException' with message 'Expected response code 354 but got code "550", with message "550 5.7.0 Requested action not taken: too many emails per second "' in /home/laravel/app/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:383 Stack trace: #0 /home/laravel/app/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(281):
我们的错误只发生在使用 Sendgrid 而不是 Mailtrap 时,它会欺骗电子邮件发送.我已经和 Sendgrid 谈过了,当我发生错误时,电子邮件从未接触过他们的服务器,而且他们的服务完全处于活动状态.所以,错误似乎就在我身上.
Our error only happens using Sendgrid and not Mailtrap, which spoofs emailing sending. I've talked with Sendgrid and the emails never touched their servers and their service was fully active when my error occurred. So, the error appears to be on my end.
有什么想法吗?
好像只有 Mailtrap 发送这个错误,所以要么开设另一个帐户或升级到付费计划.
Seems like only Mailtrap sends this error, so either open another account or upgrade to a paid plan.
这篇关于带有队列 550 错误的 Laravel 电子邮件(每秒电子邮件太多)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!