Python3 Implementing a mail-sending program

Source: Internet
Author: User
Tags how to send mail

The beginning of the idea is very simple, because there are thousands of messages need to send out, and need a message sent, can not be forwarded or mass, each message to the name of each other, and add a few of the same characters, considering the manual operation is tedious, so think of the program implementation, Python seems very competent. e-mail in Excel table, therefore, the first consideration is to read the Excel table, the best way is to directly modify the Excel table each record, indicating that this record has been sent successfully, but I use the xlrd, can only read, can not write, had to call the INI method, so that the completion of the read data, Depending on the INI data, decide whether to send the message, modify the INI data status. Well, that's the situation.

Then you have to study how to send mail, with the Mail protocol SMTP can, unfortunately, the domestic mailbox is too bad, the first e-mail a success, another one on the back of the letter, the study of 163 is the case, QQ has not been sent successfully, and then test Hotmail, incredibly successful, Just too slow, too slow, send a letter to 1 minutes, really do not know when to send. Upload the code snippet later.

Python3 Implementing a mail-sending program

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.