Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gmail SMTP error - Temporary block?

Tags:

email

gmail

I am using Gmail servers to send email from my system, with a program. Recently I started getting errors like this:

Data command failed: 421 4.7.0 Temporary System Problem. Try again later (WS). 6sm3756432pab.11 - gsmtp

The reasons are given in the support.

Can anybody tell me what is the number of emails that can trigger this issue?

Or is it because of some other reasons?

like image 693
Harikrishnan Avatar asked Aug 23 '16 09:08

Harikrishnan


2 Answers

If you are using your free Gmail account to send bulk emails your are likely to see this kind of responses early on as the service is not intended to send application transaction messages, newsletters etc., event to subscribers that has opted in. The IMAP/SMTP service provided is for you to be able to use an email client like Microsoft Outlook with your Gmail account.

If you need to send transaction messages, I suggest you google "AWS SES" for starters.

like image 52
Henkealg Avatar answered Sep 20 '22 23:09

Henkealg


This error occurs if you are using scripts to send emails in quick successions. An easy way out is to apply a sleep timer in between sending emails.

I applied a timer for 1 second between each successive email.

import time
time.sleep(1) // equivalent to 1 second sleep
like image 43
Anubhav Shrimal Avatar answered Sep 18 '22 23:09

Anubhav Shrimal