Send mail without SMTP server
npm install sendmail --save
var sendmail =logger:debug: consoleloginfo: consoleinfowarn: consolewarnerror: consoleerrorsilent: falsedkim: // Default: FalseprivateKey: fskeySelector: 'mydomainkey'devPort: 1025 // Default: False
var sendmail = ;;
Please checkout our great examples
Note if you were on any previous version before
<1.0.0 You will need to start using
html instead of
content. Instead of creating emails ourselves anymore we have decided to use
mailcomposer to compose our emails. Which means we can give you the same great package with the best mail composer package out there.
Note we use
mailcomposer to compose our mail before we send it out so all mail options will be well documented Here. But for those who want something particular go ahead and search down below.
Below are a list of the most used options for email fields. Please read the entire list of options here Here:
You are also able to send attachents. Please review the list of properties here Here
In addition to text and HTML, any kind of data can be inserted as an alternative content of the main body. Please check that out Here
All e-mail addresses can be formatted. Please check that out Here
SMTP envelope is usually auto generated from
bcc fields but you can change them Here
Attachments can be used as embedded images in the HTML body. To use this feature, you need to set additional properties Here
A better way to compose the emails while still sending them out in the exact same way.
A property describing a port for a local SMTP server (see MailHog) was added. If the property is omitted, sendmail behaves like it used to. This feature makes it possible to test an application offline and for multiple email addresses without needing to create hundreds of mail accounts. - Special thanks goes out to gumannp for PR 21
dkim object to options that can have two properties:
keySelector. These options correspond to the options for
dkim-signer. Added an example for these options. Special thanks goes out to download13 for PR 23