From the course: Python Projects

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Format an email message

Format an email message - Python Tutorial

From the course: Python Projects

Format an email message

- [Narrator] Now that my application can retrieve various types of content. It's time to move on to another part of the program, the email itself. which will be implemented in the DD email Python module. Here you can see the methods I stubbed out to implement for my Daily Digest email class. If you want some extra programming practice, now is a good time to pause the course and implement your own version of these methods, before I show you how I approach them. Now, before I could send an email, I needed to have something to send. So it made sense for me to tackle the format message. Method next. When I was coming up with the original requirements and a rough plan for my class, I planned to have a method called format message, whose job would be to format all of the assorted content into the message body for the email. later, when it came time to actually implement that method, I realized I didn't actually know the details of how an email message should be formatted. So I booted up my…

Contents