0.2.4 ā€¢ Published 2 years ago

zaagel v0.2.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

zaagel

Send templated emails from anywhere to everywhere in 2 lines of code.

NPM

Installation

npm i zaagel

Usage

let's say i have this piece of data

const data = {
  name: 'foo',
  decription: 'bar',
  message: 'foo bar never gets old',
}

THIS is how easy it is to send it as a templated email with zaagel

const message = {
  to: "your-email@domain.com",
  subject: "Sending automated emails is easy!",
  template: "message-confirmation", // email template used
  body: data, // data to populate template,
  replyTo: "other-email@domain.com",
}

import zaagel from  'zaagel'
zaagel.mail(message)

By default, emails are sent from zaagel@samuraisoftware.house.

If you need to override the default behavior, or want further customization, you can pass in your own SMTP settings to the configure function before making a mailing request.

const siteData = {
  siteName: 'your-site.com',
  siteOwner: 'your-name',
  siteEmail: 'your-email@domain.com'
}
const config = { 
  service: "Outlook365", // or gmail, zoho, etc.
  host: "smtp.office365.com",
  port: "587",
  tls: { 
    ciphers: "SSLv3",
    rejectUnauthorized: false,
  },
  auth: {
    user: 'your-email@domain.com',
    pass: 'your-app-password',
  },
}

import zaagel from  'zaagel'
zaagel.configure(siteData, config)

Contributing

Here's where this project is headed:

Near Future:

šŸŽ Templates documentation

šŸŽ API documentation

šŸŽ More email templates

šŸŽ

Later:

šŸ¤Æ Email scheduling (send at time t)

šŸ¤Æ Visual email editor

šŸ¤Æ Dashboard to track email performance

Contributing to any of these would be major!!

License

Zaagel is licensed under the MIT license


0.2.4

2 years ago

0.2.3

2 years ago

0.0.2

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago