February 2019
Beginner
694 pages
18h 4m
English
There are a variety of Node-based packages that we can import to give us email capability. In this chapter, we will use the nodemailer package, which can be installed as follows:
npm install --save nodemailer
Once installed, we will need a few declaration files using @types, as follows:
npm install @types/node --saveDev npm install @types/nodemailer --saveDev npm install @types/nodemailer-direct-transport --save npm install @types/nodemailer-smtp-transport --save npm install @types/nodemailer-bluebird --save
With the nodemailer package installed, and the relevant TypeScript declaration files in place, we can follow the examples on the Nodemailer website, and send an email in three simple steps. Let's create a NodeMailer.ts ...
Read now
Unlock full access