kadirahq/url-mailer

Name: url-mailer

Owner: KADIRA

Description: null

Created: 2015-12-21 06:06:34.0

Updated: 2015-12-26 20:48:18.0

Pushed: 2015-12-22 19:00:13.0

Homepage: null

Size: 9

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

url-mailer

Create a mail client with standard url to a smtp server. So the url of mail client is the only configuration option you need to keep.

ES6
rt MailClient from 'url-mailer';

t mailUrl = 'smtp://user:pass@smtp.test.host:465';
t mailer = new MailClient(mailUrl, {});

t mailOptions = {
om: 'Bob Sanders <bob@example.com>',
: 'alice@example.com',
bject: 'Hey Alice',
ntent: '<b>Important:</b> Check <a href="http://foobar.com"> this </a>'


er.sendEmail(mailOptions).then(() => {
nsole.log('successful!')


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.