nodemailer
Advanced tools
Comparing version 6.9.2 to 6.9.3
# CHANGELOG | ||
## 6.9.3 2023-05-29 | ||
- Specified license identifier (was defined as MIT, actual value MIT-0) | ||
- If SMTP server disconnects with a message, process it and include as part of the response error | ||
## 6.9.2 2023-05-11 | ||
@@ -4,0 +9,0 @@ |
@@ -820,2 +820,16 @@ 'use strict'; | ||
_onClose() { | ||
let serverResponse = false; | ||
if (this._remainder && this._remainder.trim()) { | ||
if (this.options.debug || this.options.transactionLog) { | ||
this.logger.debug( | ||
{ | ||
tnx: 'server' | ||
}, | ||
this._remainder.replace(/\r?\n$/, '') | ||
); | ||
} | ||
this.lastServerResponse = serverResponse = this._remainder.trim(); | ||
} | ||
this.logger.info( | ||
@@ -829,5 +843,7 @@ { | ||
if (this.upgrading && !this._destroyed) { | ||
return this._onError(new Error('Connection closed unexpectedly'), 'ETLS', false, 'CONN'); | ||
return this._onError(new Error('Connection closed unexpectedly'), 'ETLS', serverResponse, 'CONN'); | ||
} else if (![this._actionGreeting, this.close].includes(this._responseActions[0]) && !this._destroyed) { | ||
return this._onError(new Error('Connection closed unexpectedly'), 'ECONNECTION', false, 'CONN'); | ||
return this._onError(new Error('Connection closed unexpectedly'), 'ECONNECTION', serverResponse, 'CONN'); | ||
} else if (/^[45]\d{2}\b/.test(serverResponse)) { | ||
return this._onError(new Error('Connection closed unexpectedly'), 'ECONNECTION', serverResponse, 'CONN'); | ||
} | ||
@@ -949,3 +965,3 @@ | ||
// skip unexpected empty lines | ||
setImmediate(() => this._processResponse(true)); | ||
setImmediate(() => this._processResponse()); | ||
} | ||
@@ -957,3 +973,3 @@ | ||
action.call(this, str); | ||
setImmediate(() => this._processResponse(true)); | ||
setImmediate(() => this._processResponse()); | ||
} else { | ||
@@ -960,0 +976,0 @@ return this._onError(new Error('Unexpected Response'), 'EPROTOCOL', str, 'CONN'); |
@@ -45,2 +45,10 @@ { | ||
"Forward Email": { | ||
"aliases": ["FE", "ForwardEmail"], | ||
"domains": ["forwardemail.net"], | ||
"host": "smtp.forwardemail.net", | ||
"port": 465, | ||
"secure": true | ||
}, | ||
"GandiMail": { | ||
@@ -47,0 +55,0 @@ "aliases": ["Gandi", "Gandi Mail"], |
{ | ||
"name": "nodemailer", | ||
"version": "6.9.2", | ||
"version": "6.9.3", | ||
"description": "Easy as cake e-mail sending from your Node.js applications", | ||
@@ -17,3 +17,3 @@ "main": "lib/nodemailer.js", | ||
"author": "Andris Reinman", | ||
"license": "MIT", | ||
"license": "MIT-0", | ||
"bugs": { | ||
@@ -24,4 +24,4 @@ "url": "https://github.com/nodemailer/nodemailer/issues" | ||
"devDependencies": { | ||
"@aws-sdk/client-ses": "3.329.0", | ||
"aws-sdk": "2.1376.0", | ||
"@aws-sdk/client-ses": "3.341.0", | ||
"aws-sdk": "2.1386.0", | ||
"bunyan": "1.8.15", | ||
@@ -42,4 +42,4 @@ "chai": "4.3.7", | ||
"proxy-test-server": "1.0.0", | ||
"sinon": "15.0.4", | ||
"smtp-server": "3.11.0" | ||
"sinon": "15.1.0", | ||
"smtp-server": "3.12.0" | ||
}, | ||
@@ -46,0 +46,0 @@ "engines": { |
@@ -93,3 +93,3 @@ # Nodemailer | ||
Nodemailer is licensed under the **MIT license** | ||
Nodemailer is licensed under the **MIT No Attribution license** | ||
@@ -96,0 +96,0 @@ --- |
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
488998
44
0
11676