Mail Automation In Python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson

Mail Automation In Python

Do I have to use the MIME library in addition to the smtplib ? and do i have to login to my mail to send the mail? smtp.login(mail, password) AND what is the port ? the number you here: smtp.SMTP(, port)

31st Jan 2021, 11:57 AM
Yahel - avatar
1 Answer
+ 1
For the first question I think mime is used to add subject format or html page to your mail.It is not required.The protocol of sample mail transfer protocol uses port 456 .You have to login to your Google or fake account after doing required security setting in your Google account(Gmail will block third party from accessing or sending mail via your account.).Mime as I said is used to add html or other content to your mail page.
31st Jan 2021, 8:56 PM
HBhZ_C - avatar