nodemailer
Advanced tools
Comparing version 6.8.0 to 6.9.0
# CHANGELOG | ||
## 6.9.0 2023-01-12 | ||
- Do not throw if failed to resolve IPv4 addresses | ||
- Include EHLO extensions in the send response | ||
- fix sendMail function: callback should be optional | ||
## 6.8.0 2022-09-28 | ||
@@ -4,0 +10,0 @@ |
@@ -10,2 +10,3 @@ 'use strict'; | ||
const packageData = require('../../package.json'); | ||
const net = require('net'); | ||
@@ -135,2 +136,6 @@ const MAX_REDIRECTS = 5; | ||
if (parsed.protocol === 'https:' && parsed.hostname && parsed.hostname !== reqOptions.host && !net.isIP(parsed.hostname) && !reqOptions.servername) { | ||
reqOptions.servername = parsed.hostname; | ||
} | ||
try { | ||
@@ -137,0 +142,0 @@ req = handler.request(reqOptions); |
@@ -140,3 +140,3 @@ 'use strict'; | ||
*/ | ||
sendMail(data, callback) { | ||
sendMail(data, callback = null) { | ||
let promise; | ||
@@ -143,0 +143,0 @@ |
@@ -219,4 +219,3 @@ /* eslint no-console: 0 */ | ||
// there are addresses but none can be used | ||
let err = new Error(`Can not use IPv${addresses[0].family} addresses with current network`); | ||
return callback(err); | ||
console.warn(`Failed to resolve IPv${addresses[0].family} addresses with current network`); | ||
} | ||
@@ -223,0 +222,0 @@ |
@@ -17,3 +17,3 @@ 'use strict'; | ||
const GREETING_TIMEOUT = 30 * 1000; // how much to wait after connection is established but SMTP greeting is not receieved | ||
const DNS_TIMEOUT = 30 * 1000; // how much to wait for resolveHostname | ||
const DNS_TIMEOUT = 30 * 1000; // how much to wait for resolveHostname | ||
@@ -1268,2 +1268,8 @@ /** | ||
this._ehloLines = str | ||
.split(/\r?\n/) | ||
.map(line => line.replace(/^\d+[ -]/, '').trim()) | ||
.filter(line => line) | ||
.slice(1); | ||
// Detect if the server supports STARTTLS | ||
@@ -1666,2 +1672,6 @@ if (!this.secure && !this.options.ignoreTLS && (/[ -]STARTTLS\b/im.test(str) || this.options.requireTLS)) { | ||
if (this._ehloLines && this._ehloLines.length) { | ||
response.ehlo = this._ehloLines; | ||
} | ||
if (this._envelope.rejectedErrors.length) { | ||
@@ -1668,0 +1678,0 @@ response.rejectedErrors = this._envelope.rejectedErrors; |
{ | ||
"name": "nodemailer", | ||
"version": "6.8.0", | ||
"version": "6.9.0", | ||
"description": "Easy as cake e-mail sending from your Node.js applications", | ||
@@ -23,20 +23,20 @@ "main": "lib/nodemailer.js", | ||
"devDependencies": { | ||
"@aws-sdk/client-ses": "3.180.0", | ||
"aws-sdk": "2.1225.0", | ||
"@aws-sdk/client-ses": "3.245.0", | ||
"aws-sdk": "2.1293.0", | ||
"bunyan": "1.8.15", | ||
"chai": "4.3.6", | ||
"chai": "4.3.7", | ||
"eslint-config-nodemailer": "1.2.0", | ||
"eslint-config-prettier": "8.5.0", | ||
"eslint-config-prettier": "8.6.0", | ||
"grunt": "1.5.3", | ||
"grunt-cli": "1.4.3", | ||
"grunt-eslint": "24.0.0", | ||
"grunt-eslint": "24.0.1", | ||
"grunt-mocha-test": "0.13.3", | ||
"libbase64": "1.2.1", | ||
"libmime": "5.1.0", | ||
"libqp": "1.1.0", | ||
"mocha": "10.0.0", | ||
"libmime": "5.2.0", | ||
"libqp": "2.0.1", | ||
"mocha": "10.2.0", | ||
"nodemailer-ntlm-auth": "1.0.3", | ||
"proxy": "1.0.2", | ||
"proxy-test-server": "1.0.0", | ||
"sinon": "14.0.0", | ||
"sinon": "15.0.1", | ||
"smtp-server": "3.11.0" | ||
@@ -43,0 +43,0 @@ }, |
@@ -23,2 +23,6 @@ # Nodemailer | ||
This project is supported by [Opensense](https://www.opensense.com) - The beautiful email signature management company for Office 365 and Google Workspace. | ||
--- | ||
## Having an issue? | ||
@@ -25,0 +29,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
487089
11632
98
12