1.1.6 • Published 6 years ago

email-engine v1.1.6

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

Email Engine

A simple engine who sets your API key and send mail for different platform like SendGrid,Mailgun, AWS-SES etc

How to Use

npm install email-engine --save

Set your respective API key

For Mailgun

const emailEngine = require('email-engine');
emailEngine.setKey(process.env.YOUR_API_KEY, 'MAIL_GUN', process.env.DOMAIN);

For Send Grid

const emailEngine = require('email-engine');
emailEngine.setKey(process.env.YOUR_API_KEY, 'SEND_GRID');
  • Send Mails
to = "anymail@anydomain.com";
subject = "any subject";
html = "any html or your html template";
from = "anymail@anydomain.com"
emailEngine.sendMailFromSendGrid(to, subject, html,from);
  • For Declaring From constant

emailEngine.setFromMail('anymail@anydomain.com');

Now you would not pass from mail in sending mail.

Happy Coding

##Future plans

  • Adding AWS-SES
  • Testing
  • Multiple Mails
  • Cron Mails
1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago