Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var email = require("./path/to/emailjs/email");
- var server = email.server.connect({
- user: "username",
- password:"password",
- host: "smtp.your-email.com",
- ssl: true
- });
- // send the message and get a callback with an error or details of the message that was sent
- server.send({
- text: "i hope this works",
- from: "you <username@your-email.com>",
- to: "someone <someone@your-email.com>, another <another@your-email.com>",
- cc: "else <else@your-email.com>",
- subject: "testing emailjs"
- }, function(err, message) { console.log(err || message); });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement