mail-free
v1.1.9
Published
Send mail free and easy
Downloads
7
Readme
mail-free
Send emails free and easy.
mail-free is an email package that let's send emails any number of times and any numbber of pepole.
Get started
Install NPM dependency
npm install --save mail-free
Include
var mail=require('mail-free')
Login in your account
mail.login('Service','Sender mail address','Sender password');
Mail to reciever
mail.mail('Reciever mail address','Subject of mail','Body of the mail');
Common use case examples
Include
var mail=require('mail-free')
login
mail.login("Gmail","[email protected]","password@123");
mail.mail('[email protected]',"Hello","How its going");
Response
Email sent: 250 2.0.0 OK 1603766622 s8sm100565pjn.46 - gsmtp
{ accepted: [ '[email protected]' ],
rejected: [],
envelopeTime: 766,
messageTime: 1459,
messageSize: 251,
response: '250 2.0.0 OK 1603766623 kk14sm95620pjb.47 - gsmtp',
envelope: { from: '[email protected]', to: [ '[email protected]' ] },
messageId: '<e6914739-021e-9522-c39a-05df5fccef82@goorm>' }
Email sent: 250 2.0.0 OK 1603766623 kk14sm95620pjb.47 - gsmtp ^C
Service & Permission for Errors
Gmail
Use :
service: 'Gmail',
Goto :
https://myaccount.google.com/lesssecureapps
Enable :
Allow less secure apps: ON
Goto :
https://accounts.google.com/b/0/DisplayUnlockCaptcha
Enable :
Allow Acess
Yahoo
service: 'Yahoo',
Goto :
https://login.yahoo.com/account/security
Enable :
Allow apps that use less secure sign in
Contribution
Very much appreciate any types of donation and support.
Code
mail-free
follows github convention for contributions. Here are some steps:
- Fork the repo to your github account
- Checkout code from your github repo to your local machine.
- Make code changes and don't forget add related tests.
- Run
npm test
locally before pushing code back. - Create a Pull Request on github.
- Code review and merge
- Changes will be published to NPM within next version.