Sender Rewriting Scheme module for emails
https://en.wikipedia.org/wiki/Sender_Rewriting_Scheme http://www.open-spf.org/srs/
npm i --save senrews
-
src/index.js
-
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*
-
MIT