Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2016
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. var email = require("./path/to/emailjs/email");
  2. var server = email.server.connect({
  3. user: "username",
  4. password:"password",
  5. host: "smtp.your-email.com",
  6. ssl: true
  7. });
  8.  
  9. // send the message and get a callback with an error or details of the message that was sent
  10. server.send({
  11. text: "i hope this works",
  12. from: "you <username@your-email.com>",
  13. to: "someone <someone@your-email.com>, another <another@your-email.com>",
  14. cc: "else <else@your-email.com>",
  15. subject: "testing emailjs"
  16. }, function(err, message) { console.log(err || message); });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement