Permalink
Browse files

updated README for SendGrid support

  • Loading branch information...
Andris Reinman
Andris Reinman committed Mar 1, 2012
1 parent 770d337 commit ecfeb0ec3225bb8fd8fea4f1430b0d615ce5586a
Showing with 17 additions and 0 deletions.
  1. +17 −0 README.md
View
@@ -254,6 +254,23 @@ Example:
nodemailer.sendMail(mailOptions, function(){});
+### SendGrid support
+
+Nodemailer supports SendGrid [SMTP API](http://docs.sendgrid.com/documentation/api/smtp-api/) out of the box - you can
+use objects as header values and these are automatically JSONized (and mime encoded if needed).
+
+ var mailOptions = {
+ ...,
+ headers: {
+ 'X-SMTPAPI': {
+ category : "newuser",
+ sub:{
+ "%name%": ["Žiguli Õllepruul"]
+ }
+ }
+ }
+ }
+
### Attachment fields
Attahcment object consists of the following properties:

0 comments on commit ecfeb0e

Please sign in to comment.