Send mails through the SimpleMailerAPI for simple mail send for free. No need of a mailserver.
npm i sefmail
var sefMail = require("sefmail");
// Requires an api token which you can get from the SimpleMailerAPI Site
sefMail.config.apiToken = 'YOUR_API_TOKEN';
// Send a mail
sefMail.mail(from, to, subject, content, callback);
-
from is the sender of the mail with a syntax of
Max Mustermann <max@mustermann.com>
-
to is the receiver of the mail with a syntax of
max@mustermann.com
- subject is the subject of the mail
- content is the content of the mail
-
callback is the callback function -
callback(response)