Gmail SMTP error - Temporary block?

后端 未结 3 1197
予麋鹿
予麋鹿 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: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
    

提交回复
热议问题