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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.
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!')