Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Example of how to send HTML Emails in NodeJs with Nodemailer.

Usage

npm install
npm run start

After the start, open http://localhost:3000 and you should find the simple form.

HTMl Email Preview

Fill out the form and submit. You should receive a simple HTML email.

HTMl Email Preview

This example use the Stream Transport for testing.

Use SMTP transport for delivering messages in the production environment.

const transporter = nodemailer.createTransport({
  host: 'smtp.example.com',
  port: 587,
  auth: {
    user: 'username',
    pass: 'password'
  }
});

About

Example of how to send HTML Emails in NodeJs with Nodemailer.

Resources

Releases

No releases published

Packages

No packages published