sefmail
v1.1.4
Published
An API for sending application side mails
Downloads
3
Maintainers
Readme
sefmail
Send mails through the SimpleMailerAPI for simple mail send for free. No need of a mailserver.
Install
npm i sefmail
Usage
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);
sefMail.mail() parameters
- from is the sender of the mail with a syntax of
Max Mustermann <[email protected]>
- to is the receiver of the mail with a syntax of
[email protected]
- subject is the subject of the mail
- content is the content of the mail
- callback is the callback function -
callback(response)