smtplib: SmtpServerDisconnected caused by too long [to_addrs]

One day my bulk-mailer python script threw (I mean raised) SmtpServerDisconnected error, it surely was smtplib’s “fault”. So I tried to make it send_mail only to my own address. The error gone. Means that it should be caused by it having too many recipients.

So instead of sending to [VeryLongList], i made it to send_mail for each in [VeryLongList] instead. And it successfully sent the spam notification mails.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s