Back to Browse

Python Basics: Sending E-mails

25.3K views
Dec 28, 2016
14:13

Time for a part 2 of writing a program to send e-mails from data stored in spreadsheet. Make sure to watch first part here: https://www.youtube.com/watch?v=a8V6b1iy-Hg where I show you how to read values from CSV file. Now we learn how to send e-mail in Python. This is not a perfect solution, since I use settings file with my e-mail and password used to connect to Gmail SMTP server. However, I chose to show you this solution as a first step to understand how it works in Python. Try with a newly created email address first to see how it works. Here are links to Python documentation you should check out: https://docs.python.org/3/library/smtplib.html https://docs.python.org/2/library/smtplib.html#smtplib.SMTP.login https://docs.python.org/2/library/smtplib.html#smtplib.SMTP.sendmail https://docs.python.org/2/library/smtplib.html#smtplib.SMTP.starttls πŸ’πŸ’» My social media: Twitter: https://twitter.com/CodingIsForGirl Facebook: https://www.facebook.com/codingIsForGirls/ πŸπŸ“– Check these resources to learn more: * Python documentation about csv standard module: https://docs.python.org/3/library/csv.html * Django Girls Tutorial: http://tutorial.djangogirls.org/ 🎬🐍 Python Basics Playlist (if you want to start from the very beginning): * https://www.youtube.com/playlist?list=PLbd_WhypdBbAMyFfKgSj27JO7CEpuIcEK

Download

0 formats

No download links available.

Python Basics: Sending E-mails | NatokHD