Skip to content

Commit

Permalink
Added SSL documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
deitch committed Feb 9, 2011
1 parent 7b384b1 commit 6157a94
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,29 @@
});
}

# USING SSL
This fork supports SSL connections (not TLS / STARTTLS, just SSL from the beginning of the connection). To use it,
add an option ssl: true:

email.send({
host : "localhost", // smtp server hostname
port : "25", // smtp server port
ssl: true, // for SSL support - REQUIRES NODE v0.3.x OR HIGHER
domain : "localhost", // domain used by client to identify itself to server
to : "marak.squires@gmail.com",
from : "obama@whitehouse.gov",
subject : "node_mailer test email",
body: "Hello! This is a test of the node_mailer.",
authentication : "login", // auth login is supported; anything else is no auth
username : "dXNlcm5hbWU=", // Base64 encoded username
password : "cGFzc3dvcmQ=" // Base64 encoded password
},
function(err, result){
if(err){ console.log(err); }
});



# USING TEMPLATES

### create a simple template
Expand Down

0 comments on commit 6157a94

Please sign in to comment.