Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #43 from hokaccha/master

`generateBody()` dosen't encode quoted-printable, if encoding is not quoted-printable
  • Loading branch information...
commit a4f6bff6e78135d563f0e2fbe2da11e0f01af88a 2 parents fbe7a7d + 67ea3f3
Andris Reinman andris9 authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/mail.js
6 lib/mail.js
View
@@ -275,7 +275,11 @@ EmailMessage.prototype.generateHeaders = function(){
EmailMessage.prototype.generateBody = function(){
if(!this.content_multipart){
- return this.body && mimelib.encodeQuotedPrintable(this.body) || "";
+ if(this.encoding == "quoted-printable"){
+ return this.body && mimelib.encodeQuotedPrintable(this.body) || "";
+ }else{
+ return this.body;
+ }
}
var body_boundary = this.content_mixed?
Please sign in to comment.
Something went wrong with that request. Please try again.