Hey there, welcome to day 32 of 100 Days of Code. Now,
today
we're going to be learning about email SMTP and the date time module.
Basically, we're going to learn how to send email using Python code.
And we're going to determine when we send the email using this daytime time
module. And once we've learned all of those skills,
we're going to be building a really interesting and possibly helpful tool where
we can automate a happy birthday email to all of our friends and family.
So, I probably only remember a handful of people's emails off by heart and the
rest of the time, I rely pretty much on Facebook telling me that it's so,
and so's birthday. And I end up writing on their timeline.
But if Facebook didn't tell me, I would probably not remember.
Now I know some friends of mine are really good at remembering everybody's
birthday,
even if they don't go on the Facebook and they'll send you a message every year
showing how good of a friend they are.
And it always makes me feel a little bit bad inside.
So what's our solution? To remember everybody's date of birth?
No. We're going to build a Python program.
And this Python program is going to be the automated birthday wisher.
All we have to do it is
create a spreadsheet of all of our friend's birthdays and then create a bunch of
emails
and we'll randomly pick an email to send to each of these friends.
And this program is going to teach us some skills in Python
helping us level up as a programmer.
But it also makes us better people because our friends will feel like we
remember their birthdays and help our friends feel more appreciated.
Email SMTP is a module that comes pre-bundled with Python
and it helps us send email using Python code.
And daytime is another Python module that helps us figure out what today's date
is or how to format a particular date and time. And in our case,
it's going to help us figure out if today happens to be the day of one of our
friend's birthdays, in which case we'll send them a birthday email.
So that's the plan. Head over to the next lesson
and we'll get started by learning how to send email.