6. Email Confirmation

Learning Objectives

By the end of this chapter, you will be able to:

  • Send out plaintext and HTML format emails using the Mailgun API
  • Create a token for account activation using the itsdangerous package
  • Utilize the entire workflow for user registration
  • Develop applications using the benefits of environment variables

This chapter covers how to use an email package to develop an email activation feature on the food recipe sharing platform for user registration as well as email verification.

Introduction

In the previous chapter, we worked on validating APIs using marshmallow. In this chapter, we will add functionality to our application that allows us to send emails to users.

Everyone has their own email address. ...

Get Python API Development Fundamentals now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.