Chapter 8. Marketing Mailer
This chapter covers the following:
-
Sending emails from a Node app
-
Setting up a scheduler to run tasks
-
Verifying accounts and tracking email engagement
In this chapter, you’ll build an app that sends emails and manages the logic for the receiving users. You learned in Chapter 1 how HTTP is one protocol for communicating across the internet. Here, you’ll explore some of the protocols that are widely used for email servers and clients to support communication in another way. Just as Node can be used to deliver full-fledged APIs and web servers, it can be used for micro tasks, such as sending emails.
Throughout the chapter, you’ll add incremental pieces to support some of the most common functionalities used in an email marketing service. You’ll start by configuring a well-known package for sending mail externally. Then, you’ll build an API to support collecting emails and verifying them. At the end, you’ll add logic to automatically schedule marketing emails to select groups of subscribers to your product.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access