senrews
v1.2.8
Published
Sender Rewriting Scheme module for emails
Downloads
2
Readme
senrews
Sender Rewriting Scheme module for emails
https://en.wikipedia.org/wiki/Sender_Rewriting_Scheme http://www.open-spf.org/srs/
Installing
npm i --save senrews
Autogenerated docs
https://x82-open-source.gitlab.io/npm/senrews
Public API
src/index.js
Functions
combineEmail(title, emailAddress) => String
- Combines an email address back into one. Eg Auxolust and [email protected] => "Auxolust" [email protected]*
extractTitle(emailAddress, [ keepQuotes ]) => String
- Extracts the titles from email addresses*
extractEmail(emailAddress) => String
- extractEmail Extracts the email portion of an email address ignoring titles*
forward(receievedEmailAddress, senderDomain, secret, [ separator ]) => String
- Creates an SRS compliant string for your from/source of an email based on your sending domain*
reverse(receievedEmailAddress, baseAddress) => String
- Unwraps and email address that is possibly SRS to get the bounce or base address*
Licence
MIT