Our emails are not sent using Laravel with Redis Queue.
The code causing the error is this: ->onQueue('emails')
$job = (new SendNewEmail($sender, $recipients))->onQueue('emails');
$job_result = $this->dispatch($job);
In combination with this in the assignment:
use InteractsWithQueue;
Our error message:
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:
Our error occurs only when using Sendgrid, and not Mailtrap, which sends mail by e-mail. I spoke with Sendgrid, and the letters never touched their servers, and their service was fully active when my error occurred. So the error seems to be at my end.
Any thoughts?
source
share