Skip to content
This repository
Browse code

Added SSL documentation

  • Loading branch information...
commit 6157a9484f190c9bea3abaf347f3f8bafbaae7a7 1 parent 7b384b1
Avi Deitcher deitch authored

Showing 1 changed file with 23 additions and 0 deletions. Show diff stats Hide diff stats

  1. +23 0 Readme.md
23 Readme.md
Source Rendered
@@ -41,6 +41,29 @@
41 41 });
42 42 }
43 43
  44 +# USING SSL
  45 +This fork supports SSL connections (not TLS / STARTTLS, just SSL from the beginning of the connection). To use it,
  46 +add an option ssl: true:
  47 +
  48 +email.send({
  49 + host : "localhost", // smtp server hostname
  50 + port : "25", // smtp server port
  51 + ssl: true, // for SSL support - REQUIRES NODE v0.3.x OR HIGHER
  52 + domain : "localhost", // domain used by client to identify itself to server
  53 + to : "marak.squires@gmail.com",
  54 + from : "obama@whitehouse.gov",
  55 + subject : "node_mailer test email",
  56 + body: "Hello! This is a test of the node_mailer.",
  57 + authentication : "login", // auth login is supported; anything else is no auth
  58 + username : "dXNlcm5hbWU=", // Base64 encoded username
  59 + password : "cGFzc3dvcmQ=" // Base64 encoded password
  60 +},
  61 +function(err, result){
  62 + if(err){ console.log(err); }
  63 +});
  64 +
  65 +
  66 +
44 67 # USING TEMPLATES
45 68
46 69 ### create a simple template

0 comments on commit 6157a94

Please sign in to comment.
Something went wrong with that request. Please try again.