-
Notifications
You must be signed in to change notification settings - Fork 64
/
demo.js
22 lines (21 loc) · 844 Bytes
/
demo.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
var email = require("./lib/node_mailer");
for(var i = 0; i < 1; i++){
email.send({
ssl: true,
host : "smtp.gmail.com", // smtp server hostname
port : 465, // smtp server port
domain : "[127.0.0.1]", // domain used by client to identify itself to server
to : "[email protected]",
from : "[email protected]",
subject : "node_mailer test email",
reply_to:"[email protected]",
body: "Hello! This is a test of the node_mailer.",
authentication : "login", // auth login is supported; anything else is no auth
username : undefined, // username
password : undefined, // password
debug: true // log level per message
},
function(err, result){
if(err){ console.log(err); }
});
}