Summary
NotesYou now have a mechanism for sending emails from the application and the ability to have a development mode for outputting to the console while working on your project. This functionality will also be utilised when adding user registration and providing password resets later.
Moreover, including a CAPTCHA will mitigate abuse of the web form by malicious spam-bots.
Code
The example code at this point is tagged ch05-contact-form in the example repository. To get it:
git clone https://github.com/codewalkr/fastapi-example-for-you.git
cd fastapi-example-for-you
git checkout ch05-contact-form