Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

shuvobhai's avatar

Too many email per second

Error : Expected response code 354 but got code "550", with message "550 5.7.0 Requested action not taken: too many emails per second "

How can i solve this problem???

my code

$subscribers = Subscriber::all(); foreach($subscribers as $subscriber){ Notification::route('mail',$subscriber->email)->notify(new NewBlogPosted($post)); }

0 likes
5 replies
Snapey's avatar

What provider are you using, mailtrap for instance has a limit to how many messages you can send per minute.

You need to pace the sending which you could do by adding ->delay() to each queued message

2 likes
Kianni's avatar

@snapey When will the next message after first one being sent? With delay() added I got only one message sent, but I have more than one, of course - this is the very matter of the issue

Darsh's avatar

php artisan queue:work --sleep=1 --tries=3 use this command for queue start

Please or to participate in this conversation.