Gmail SMTP error - Temporary block?

后端 未结 3 1107
予麋鹿
予麋鹿 2021-01-06 13:15

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 T

相关标签:
3条回答
  • 2021-01-06 13:35

    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.

    0 讨论(0)
  • 2021-01-06 13:38

    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
    
    0 讨论(0)
  • 2021-01-06 13:39

    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.

    0 讨论(0)
提交回复
热议问题