Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes #40 only plaintext body was used for generating messages

  • Loading branch information...
commit 57d735ee22e78f10beaf207fd58b1cdafc1ddd3a 1 parent 2c49099
andris9 authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/mail.js
  2. +2 −2 package.json
4 lib/mail.js
View
@@ -21,7 +21,7 @@ fs.readdirSync(__dirname + '/engines').forEach(function(engine) {
* Version constants
*/
var X_MAILER_NAME = "Nodemailer",
- X_MAILER_VERSION = "0.2.1; +http://www.nodemailer.org";
+ X_MAILER_VERSION = "0.2.2; +http://www.nodemailer.org";
/**
* mail
@@ -317,7 +317,7 @@ EmailMessage.prototype.generateBody = function(){
/* Should we apply the quoted-printable conversion? */
if(this.encoding == "quoted-printable"){
// dots in the beginning of the lines will be replaced with double dots
- rows.push(mimelib.encodeQuotedPrintable(this.body.trim()).replace(/^\./gm,'..'));
+ rows.push(mimelib.encodeQuotedPrintable(this.html.trim()).replace(/^\./gm,'..'));
}else{
rows.push(this.html.trim());
}
4 package.json
View
@@ -1,7 +1,7 @@
{
"name": "nodemailer",
"description": "Easy to use module to send e-mails, supports unicode and SSL/TLS",
- "version": "0.2.1",
+ "version": "0.2.2",
"author" : "Andris Reinman",
"maintainers":[
{
@@ -26,4 +26,4 @@
},
"engine": [ "node >=0.3.0" ],
"keywords": ["e-mail", "mime", "email", "sendmail"]
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.