Laravel电子邮件出现队列550错误(每秒太多电子邮件) [英] Laravel email with queue 550 error (too many emails per second)

查看:442
本文介绍了Laravel电子邮件出现队列550错误(每秒太多电子邮件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的电子邮件无法使用带有Redis队列的Laravel发送.

Our emails are failing to send using Laravel with a Redis Queue.

触发错误的代码是:->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.

这篇关于Laravel电子邮件出现队列550错误(每秒太多电子邮件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆