It's my open source application for send e-mails from static websites
If you like to implement this feature in your static website follow coming steps...
💥 First Step
🎯 Clone from Github that source or install via NPM
npm install @katheesh/mailer-js --save
OR
npm i @katheesh/mailer-js
💥 Second Step
🎯 Set The mailing parameters
# to = Reciever Email Address
# from = Sender Email Address
# subject = Email Main Subject
# title = This title appear on top of body in h2
# body = add this parameter like plain text or html or markdown
💥 Third Step
🎯 Code like following JavaScript in your js file
var Mailer = require("mailer-js");
var Data =
{
"to": "your-email@sample.com",
"from":"no-replay@domain.com",
"subject": "Sample Mail from mailer-js",
"title": "Sample Mail from mailer-js",
"body" : "Hello there,I love coding and proud to present this open source application"
}
// Html / Plaintext mailing
console.log(Mailer.prepare(Data)) // i'ts return json format
// Markdown mailing
console.log(Mailer.prepareMarkdown(Data)) // i'ts return json format
💥 Conclusion
Finally you can send e-mail from your static website. It is a awesome feature and proud of our coding. If you like see this back end API codes contact in comment section.
Top comments (0)