forwardemail / email-templates

Create, preview (browser/iOS Simulator), and send custom email templates for Node.js. Made for @forwardemail, @ladjs, @cabinjs, @spamscanner, and @breejs.
https://forwardemail.net/docs/send-emails-with-node-js-javascript
MIT License
3.67k stars 337 forks source link

How this module can use a source mail (Stupid Question (Maybe)) #271

Closed SouhaibBenFarhat closed 6 years ago

SouhaibBenFarhat commented 6 years ago

Hi guys i'm new with nodejs and for some reasons i'm using this module to send email verification to users, so my question is how this module can send mails from source to destination without asking for the necessary credentials to access the sender mail and send the mail to destination.

niftylettuce commented 6 years ago

Could you re-phrase your question or simplify? Or give an example/analogy? Can you give an example in code as to what you'd like to achieve? It's totally fine that you are new, no need to preface your question with that - we were all new at one point!

SouhaibBenFarhat commented 6 years ago

normally to send mail we need to login into the sender messaging account, i was wondering how this module can send mails without accessing the sender account,

const email = new Email({ message: { from: 'niftylettuce@gmail.com' //password???

}, //other stuff....

niftylettuce commented 6 years ago

You can't do that... that would be a big security flaw