A language to model emails.
You can use this software in your npm project by requiring it or you can use email-lang-cli from your command line.
npm install --save-dev email-lang
Write an email file that follows the language specification
From: "matteomerola.me" <firstname.lastname@example.org> Subject: Comment about the novel Date: February 21, 2017 at 7:02:47 AM GMT+1 To: Tiffany <email@example.com> Reply-To: Matteo <firstname.lastname@example.org> We all know the numerous film adaptations of the novel! Cheers, Matt.
Create an instance of the model then pass data into it one or more times.
const fs =const compile =let emails =console // prints "Comment about the novel"
The result will be an array of emails structured as follows
from:name: 'Matteo'email: 'email@example.com'subject: 'The subject of the email'to:name: 'Recipient'email: 'firstname.lastname@example.org'replyTo:name: 'Matteo'email: 'email@example.com'text: 'The body content of the email message'...// another email if any