Skip to content
This repository
Browse code

Update README.md

  • Loading branch information...
commit 21c545d06d07097523d1e881eea5fcd724e9d958 1 parent 1377f1a
Andris Reinman authored

Showing 1 changed file with 5 additions and 4 deletions. Show diff stats Hide diff stats

  1. +5 4 README.md
9 README.md
Source Rendered
@@ -2,7 +2,7 @@ Nodemailer
2 2 ==========
3 3
4 4 **Nodemailer** is an easy to use module to send e-mails with Node.JS (using
5   -SMTP or sendmail) and is unicode friendly - You can use any characters you like ✔
  5 +SMTP or sendmail or Amazon SES) and is unicode friendly - You can use any characters you like ✔
6 6
7 7 Nodemailer is Windows friendly, you can install it with *npm* on Windows just like any other module, there are no compiled dependencies. Use it from Azure or from your Windows box hassle free.
8 8
@@ -25,6 +25,7 @@ in a more structured way (with TOC).
25 25 * Different transport methods - **SMTP**, **sendmail** and **Amazon SES**
26 26 * SMTP **Connection pool** and connection reuse for rapid delivery
27 27 * **Preconfigured** services for using SMTP with Gmail, Hotmail etc.
  28 + * Use objects as header values for **SendGrid** SMTP API
28 29
29 30 ## Check out my other mail related modules
30 31
@@ -43,7 +44,7 @@ This is a complete example to send an e-mail with plaintext and HTML body
43 44
44 45 var nodemailer = require("nodemailer");
45 46
46   - var transport = nodemailer.createTransport("SMTP",{
  47 + var smtpTransport = nodemailer.createTransport("SMTP",{
47 48 service: "Gmail",
48 49 auth: {
49 50 user: "gmail.user@gmail.com",
@@ -52,7 +53,7 @@ This is a complete example to send an e-mail with plaintext and HTML body
52 53 });
53 54
54 55 var mailOptions = {
55   - transport: transport, // transport method to use
  56 + transport: smtpTransport, // transport method to use
56 57 from: "Sender Name <sender@example.com>", // sender address
57 58 to: "receiver1@example.com, receiver2@example.com", // list of receivers
58 59 subject: "Hello!", // Subject line
@@ -203,7 +204,7 @@ use it to define the path to the *sendmail* command
203 204 ### Well known services for SMTP
204 205
205 206 If you want to use a well known service as the SMTP host, you do not need
206   -to enter the hostname or port number, just use the `service` parameter.
  207 +to enter the hostname or port number, just use the `service` parameter (**nb** case sensitive).
207 208
208 209 Currently cupported services are:
209 210

0 comments on commit 21c545d

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