Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added SSL documentation

  • Loading branch information...
commit 6157a9484f190c9bea3abaf347f3f8bafbaae7a7 1 parent 7b384b1
Avi Deitcher deitch authored
Showing with 23 additions and 0 deletions.
  1. +23 −0 Readme.md
23 Readme.md
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.