forwardemail / email-templates

Create, preview (browser/iOS Simulator), and send custom email templates for Node.js. Made for @forwardemail, @ladjs, @cabinjs, @spamscanner, and @breejs.
https://forwardemail.net/docs/send-emails-with-node-js-javascript
MIT License
3.67k stars 337 forks source link

Added example of sending an email with transport and gmail #333

Closed ederius closed 5 years ago

ederius commented 6 years ago

this is an example made using email-template in its latest version, in addition to this we will use nodemailer through email-template configurations

in this example, to indicate to email-template that we use transports we set the parameter 'send' in true if this meter is set to false our emails will not be sent, but we can continue to preview their appearance. After this in the key 'transport' we assign the configuration values ​​of our SMTP server with which our emails will be sent

niftylettuce commented 5 years ago

Could you put this as a file in the examples folder instead? @ederius

Greatly appreciated!!!