How to Send Emails Using Python - Plain Text, Adding Attachments, HTML Emails, and More

preview_player
Показать описание
In this Python Programming Tutorial, we will be learning how to send emails. We'll start with simple plain text emails and then learn how to construct more advanced messages. We will learn how to attach images, PDFs, create HTML messages, and more. Let's get started...

The code from this video can be found at:

Google Account Settings:

✅ Support My Channel Through Patreon:

✅ Become a Channel Member:

✅ One-Time Contribution Through PayPal:

✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey's Public Amazon Wishlist

✅ Equipment I Use and Books I Recommend:

▶️ You Can Find Me On:

#Python
Рекомендации по теме
Комментарии
Автор

If you get hundreds of test email in your inbox, don't get disturbed! Be happy to know that hundreds of people implemented what they learned here... :) As always, Corey, you are one of the best in teaching python. Thanks for this contribution.

aqurds
Автор

Thank you, for putting out a video of something so useful that many Pythonistas ask.

carlwcampbell
Автор

As always, another great video chuck full of practical tips. I have never seen a video that you made that I felt was useless or poorly made. Your videos are always top notch and the best.

officesuperhero
Автор

Your videos are my lifeline!! I am a retired programmer trying to learn Python. I've not used any other language apart from FoxPro since using Pascal 30 years ago.

johnweller
Автор

Thanks so much Corey! It's such a nice feeling to get all the code working and follow along. I really appreciate the list of contacts idea at the end, it seems so logical to do it that way and what can I say, I'm a big fan of logic! :)
Thanks again! I'm loving your content and explanations.

lukerobertson
Автор

Corey, thank you very much for this video. It's extremely clear, fast pace, super useful. Thanks mate!

martind
Автор

For anyone that had trouble, I changed my port number from 587 to 25 and it fixed the 'gaierror' for me. Also huge thanks to you Corey!! Awesome, streamlined content.

sageedwards
Автор

thank you. you explained everything perfectly line by line and argument by argument

mijimelon
Автор

What I like about this is, eventhough the code is solid it didnt work untill I understood what I was doing. Thanks for that. That is a valuable lesson

anglerfish
Автор

Thanks a lot helped me generate automatic email notifications in my web scraping project !!
PS- Puppy is so cute :D

harsh
Автор

Thanks a lot mate, I appreciate the effort you have put into making this video so easy to understand while also meeting the target of the intended title of the video. After looking online for a long time I finally came across your tutorial and I'm leaving with more information than I needed which is all so useful. So once again thanks a lot cus you made my day and all the best for the growth of your channel :))))

johangodinho
Автор

Your python tutorials are unfailingly amazing!

rotrose
Автор

this is really awesome and helpful. you simplify it so much. thank you!!

rahesc
Автор

This tutorial was so simple and straightforward. Super helpful. AND it worked!! Thanks, will be sure to check out your other videos.

jodi
Автор

I just bumped into your video. It is amazing. Thank you so much. I am so very new to Python and I think that this is one of the best tutorial I ahbe ever seen here on youtube. Thank you so much.

potschochterpotschochter
Автор

Thumbs up. Love all your vids, they are always so informative and useful.

kayderl
Автор

@Corey Schafer
Thanx for posting such a comprehensive vid. None of the other videos on email via Python touched on Google settings regarding 2-step or TLS.

alexthewebdesigner
Автор

I implemented it my flask back-end for sending automated mails to those who subscribe 😎. Thanks a lot Corey for this fantastic video.

aakashjana
Автор

This was such an amazing video, it took me a lot of time to pause and then understand and then apply it to the code, but it just made me learn so much, you are such an amazing teacher sir, thanks for sharing your knowledge with us.🙏🙏🙏

shubhamhire
Автор

Excellent video Corey! The steps were very clearly explained and worked without any issues. One question - the example that you provide is for including multiple attachments to a single email; however, if I wish to include the list of attachments to individual emails (one attachment per email), what would be the best way to proceed? I have looked this up in details and not found a satisfactory solution. Will greatly appreciate your help with this.

soumitralahiri