nodemailer 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/lib/nodemailer.js +17 -14
- package/lib/wellknown.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/lib/nodemailer.js
CHANGED
|
@@ -175,22 +175,25 @@ Nodemailer.prototype.getGlobalTransport = function(){
|
|
|
175
175
|
* @param {Function} callback Callback function to run after validation
|
|
176
176
|
*/
|
|
177
177
|
Nodemailer.prototype.validateSettings = function(callback){
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
178
|
+
var self = this;
|
|
179
|
+
process.nextTick(function(){
|
|
180
|
+
if(!self.transport || !self.transport.transport){
|
|
181
|
+
return callback(new Error("No transport method defined"));
|
|
182
|
+
}
|
|
181
183
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
184
|
+
// transport.options.resolveHostname is set to true, resolve pulbic
|
|
185
|
+
// hostname for the machine and use self when generating Message-ID values
|
|
186
|
+
// or when communicating with SMTP
|
|
187
|
+
if(self.transport.options && self.transport.options.resolveHostname && !self.transport.options.name){
|
|
188
|
+
return publicHostnameResolver.resolve((function(err, resolved){
|
|
189
|
+
self.transport.options.name = self.resolveHostname(
|
|
190
|
+
resolved ? resolved.hostname : self.options.name);
|
|
191
|
+
callback();
|
|
192
|
+
}).bind(self));
|
|
193
|
+
}
|
|
192
194
|
|
|
193
|
-
|
|
195
|
+
callback(null);
|
|
196
|
+
});
|
|
194
197
|
};
|
|
195
198
|
|
|
196
199
|
/**
|
package/lib/wellknown.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodemailer",
|
|
3
3
|
"description": "Easy to use module to send e-mails, supports unicode and SSL/TLS",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.1",
|
|
5
5
|
"author": "Andris Reinman",
|
|
6
6
|
"maintainers": [
|
|
7
7
|
{
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"directmail": "~0.1.7",
|
|
31
31
|
"he": "~0.3.6",
|
|
32
32
|
"public-address": "~0.1.1",
|
|
33
|
-
"aws-sdk": "2.0.
|
|
33
|
+
"aws-sdk": "2.0.5"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"nodeunit": "*"
|