Last active
March 1, 2017 21:40
-
-
Save nemo/447d1c5a9e25dd4184944e67462358f8 to your computer and use it in GitHub Desktop.
Email Service: Send
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const lib = require('lib'); | |
lib['./send']({ | |
message: { | |
to: [{ | |
email: "nima@halfmoon.ws", | |
name: "Nima Gardideh", | |
type: "to" | |
}], | |
headers: { | |
"Reply-To": "nima@discoverforward.com" | |
}, | |
subject: "This is a test email!", | |
from_email: "nima@discoverforward.com", | |
from_name: "Nima", | |
html: "<p>This is an email sent from a stdlib email service.</p>", | |
text: "This is an email sent from a stdlib email-service." | |
} | |
}, (err) => { | |
// Handle error | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment