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

Prevent sending to unwanted domains #393

Closed armellarcier closed 4 years ago

armellarcier commented 4 years ago

I need my staging app to send e-mails only to a custom set of domains.

Is there a way to filter recipients (to) that would be cleaner that just parsing the string on my side? Can it be an array? I'd need a few pointers please.

Thanks in advance. BTW, this lib is really awesome.

niftylettuce commented 4 years ago

this is outside scope of this repo

look into my work on Forward Email https://github.com/forwardemail