Gmail SMTP error - Temporary block?

青春壹個敷衍的年華 提交于 2019-12-01 09:38:30

问题


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?


回答1:


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.




回答2:


I too had the same issue when I tried to send bulk emails using the multi threaded program in Java. Then I heard about Thread Pool Executor. I used it by setting Thread Pool size as 10. After that, this issue has been solved for me.




回答3:


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


来源:https://stackoverflow.com/questions/39097834/gmail-smtp-error-temporary-block

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!