Comparing version
{ | ||
"name": "emailjs", | ||
"description": "send text/html emails and attachments (files, streams and strings) from node.js to any smtp server", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"author": "eleith", | ||
"contributors":["izuzak", "Hiverness", "mscdex"], | ||
"contributors":["izuzak", "Hiverness", "mscdex", "jimmybergman"], | ||
"repository": | ||
@@ -12,2 +12,10 @@ { | ||
}, | ||
"dependencies": | ||
{ | ||
"moment" : ">= 1.7.0" | ||
}, | ||
"optionalDependencies": | ||
{ | ||
"bufferjs": "=1.1.0" | ||
}, | ||
"devDependencies": | ||
@@ -21,6 +29,2 @@ { | ||
}, | ||
"optionalDependencies": | ||
{ | ||
"bufferjs": "*" | ||
}, | ||
"engine": ["node >= 0.6"], | ||
@@ -27,0 +31,0 @@ "main": "email", |
@@ -1,2 +0,2 @@ | ||
# emailjs (v0.3.2) [](http://travis-ci.org/eleith/emailjs) | ||
# emailjs (v0.3.3) [](http://travis-ci.org/eleith/emailjs) | ||
@@ -3,0 +3,0 @@ send emails, html and attachments (files, streams and strings) from node.js to any smtp server |
@@ -6,2 +6,3 @@ var stream = require('stream'); | ||
var path = require('path'); | ||
var moment = require('moment'); | ||
var CRLF = "\r\n"; | ||
@@ -35,3 +36,7 @@ var MIMECHUNK = 76; // MIME standard wants 76 char chunks when sending out. | ||
this.alternative = null; | ||
this.header = {"message-id":"<" + (new Date()).getTime() + "." + (counter++) + "." + process.pid + "@" + os.hostname() +">"}; | ||
var now = new Date(); | ||
this.header = { | ||
"message-id":"<" + now.getTime() + "." + (counter++) + "." + process.pid + "@" + os.hostname() +">", | ||
"date":moment().format("ddd, DD MMM YYYY HH:mm:ss ZZ") | ||
}; | ||
this.content = "text/plain; charset=utf-8"; | ||
@@ -38,0 +43,0 @@ |
1619
0.31%55049
-1.55%2
100%10
-9.09%+ Added
+ Added
- Removed