Permalink
Browse files

Fixes #40 only plaintext body was used for generating messages

  • Loading branch information...
1 parent 2c49099 commit 57d735ee22e78f10beaf207fd58b1cdafc1ddd3a andris9 committed Aug 24, 2011
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/mail.js
  2. +2 −2 package.json
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());
}
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"]
-}
+}

0 comments on commit 57d735e

Please sign in to comment.