Python for Entrepreneurs Transcripts
Chapter: Sending and receiving email
Lecture: Introduction to sending outbound email

Login or purchase this course to watch this video and the rest of the course contents.
0:02 Remember back in the mailing list section where I talked about sending email,
0:06 how important email is for your business and communicating with your users?
0:11 Well, MailChimp is great for things like newsletters
0:14 and certain types of bulk emailing.
0:17 However, sometimes you want to send one email to one person,
0:21 things like "hey, I forget my password" or
0:23 "thanks for creating an account", or things like that.
0:27 And I am going to show you how to add that capability
0:29 as well as accepting inbound email to your web application.
0:32 You probably have all received at least one or two emails from my system,
0:36 here you see one, Talk Python Training, this is the email you get
0:39 when you create an account for the very first time.
0:42 You can see it has a nice HTML version with pictures and everything.
0:45 What you can't see is also there is a text version as well
0:48 that is sent in parallel or sort of embedded within the same message.
0:52 But like in the MailChimp section in the mailing list section,
0:55 I told you you don't want to create your own email server
0:57 and maintain and manage that. That's still true.
1:00 So, what are we going to use to send outbound email?
1:03 We are going to use AWS. So, Amazon has a really great service
1:06 called Amazon SES or Simple Email Service.
1:10 You can see if we take a step back one slide, look right at the top,
1:13 it says Talk Python Training via Amazon SES,
1:16 so you can tell that was sent through SES on behalf of Talkpython.fm.
1:21 So this is a simple email service, you just get SMTP server address, a port,
1:25 a username and a password, you set that up in your web app,
1:29 you create a standard Python SMTP client that can send email,
1:34 and then you just start just sending HTML email,
1:38 we'll talk about specifically how to do that,
1:40 and we'll go into a demo to see how to do that,
1:42 you might be wondering what does this AWS thing cost,
1:45 like "could I afford to use this, or would it just make more sense
1:48 to actually create mailing server?"
1:51 Now, realize that SES actually does anti-spam things, it tracks bounces for you,
1:57 it helps all sorts of behind the thing stuff
2:00 to make sure your email domain remains trusted.
2:03 So what does this service cost?
2:05 Well, as far as I am concerned, it's basically free,
2:08 it costs 10 cents per 1000 emails, or 1 cent US dollars per hundred emails.
2:14 So, you can basically send as many emails as you want,
2:18 if you have so many users and so many emails going per day,
2:21 to register, you are going to have a thriving business.