@depup/nodemailer 8.0.0-depup.0 → 8.0.2-depup.0
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 +16 -0
- package/README.md +16 -77
- package/changes.json +5 -0
- package/lib/addressparser/index.js +14 -0
- package/lib/smtp-connection/index.js +4 -0
- package/lib/well-known/services.json +8 -0
- package/package.json +20 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## [8.0.2](https://github.com/nodemailer/nodemailer/compare/v8.0.1...v8.0.2) (2026-03-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* merge fragmented display names with unquoted commas in addressparser ([fe27f7f](https://github.com/nodemailer/nodemailer/commit/fe27f7fd57f7587d897274438da2f628ad0ad7d9))
|
|
9
|
+
|
|
10
|
+
## [8.0.1](https://github.com/nodemailer/nodemailer/compare/v8.0.0...v8.0.1) (2026-02-07)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* absorb TLS errors during socket teardown ([7f8dde4](https://github.com/nodemailer/nodemailer/commit/7f8dde41438c66b8311e888fa5f8c518fcaba6f1))
|
|
16
|
+
* absorb TLS errors during socket teardown ([381f628](https://github.com/nodemailer/nodemailer/commit/381f628d55e62bb3131bd2a452fa1ce00bc48aea))
|
|
17
|
+
* Add Gmail Workspace service configuration ([#1787](https://github.com/nodemailer/nodemailer/issues/1787)) ([dc97ede](https://github.com/nodemailer/nodemailer/commit/dc97ede417b3030b311771541b1f17f5ca76bcbf))
|
|
18
|
+
|
|
3
19
|
## [8.0.0](https://github.com/nodemailer/nodemailer/compare/v7.0.13...v8.0.0) (2026-02-04)
|
|
4
20
|
|
|
5
21
|
|
package/README.md
CHANGED
|
@@ -1,86 +1,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @depup/nodemailer
|
|
2
2
|
|
|
3
|
-
[
|
|
3
|
+
> Dependency-bumped version of [nodemailer](https://www.npmjs.com/package/nodemailer)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Generated by [DepUp](https://github.com/depup/npm) -- all production
|
|
6
|
+
dependencies bumped to latest versions.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
## Installation
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
> [!TIP]
|
|
12
|
-
> Check out **[EmailEngine](https://emailengine.app/?utm_source=github-nodemailer&utm_campaign=nodemailer&utm_medium=readme-link)** – a self-hosted email gateway that allows making **REST requests against IMAP and SMTP servers**. EmailEngine also sends webhooks whenever something changes on the registered accounts.\
|
|
13
|
-
> \
|
|
14
|
-
> Using the email accounts registered with EmailEngine, you can receive and [send emails](https://emailengine.app/sending-emails?utm_source=github-nodemailer&utm_campaign=nodemailer&utm_medium=readme-link). EmailEngine supports OAuth2, delayed sends, opens and clicks tracking, bounce detection, etc. All on top of regular email accounts without an external MTA service.
|
|
15
|
-
|
|
16
|
-
## Having an issue?
|
|
17
|
-
|
|
18
|
-
#### First review the docs
|
|
19
|
-
|
|
20
|
-
Documentation for Nodemailer can be found at [nodemailer.com](https://nodemailer.com/about/).
|
|
21
|
-
|
|
22
|
-
#### Nodemailer throws a SyntaxError for "..."
|
|
23
|
-
|
|
24
|
-
You are using an older Node.js version than v6.0. Upgrade Node.js to get support for the spread operator. Nodemailer supports all Node.js versions starting from Node.js@v6.0.0.
|
|
25
|
-
|
|
26
|
-
#### I'm having issues with Gmail
|
|
27
|
-
|
|
28
|
-
Gmail either works well, or it does not work at all. It is probably easier to switch to an alternative service instead of fixing issues with Gmail. If Gmail does not work for you, then don't use it. Read more about it [here](https://nodemailer.com/usage/using-gmail/).
|
|
29
|
-
|
|
30
|
-
#### I get ETIMEDOUT errors
|
|
31
|
-
|
|
32
|
-
Check your firewall settings. Timeout usually occurs when you try to open a connection to a firewalled port either on the server or on your machine. Some ISPs also block email ports to prevent spamming.
|
|
33
|
-
|
|
34
|
-
#### Nodemailer works on one machine but not in another
|
|
35
|
-
|
|
36
|
-
It's either a firewall issue, or your SMTP server blocks authentication attempts from some servers.
|
|
37
|
-
|
|
38
|
-
#### I get TLS errors
|
|
39
|
-
|
|
40
|
-
- If you are running the code on your machine, check your antivirus settings. Antiviruses often mess around with email ports usage. Node.js might not recognize the MITM cert your antivirus is using.
|
|
41
|
-
- Latest Node versions allow only TLS versions 1.2 and higher. Some servers might still use TLS 1.1 or lower. Check Node.js docs on how to get correct TLS support for your app. You can change this with [tls.minVersion](https://nodejs.org/dist/latest-v16.x/docs/api/tls.html#tls_tls_createsecurecontext_options) option
|
|
42
|
-
- You might have the wrong value for the `secure` option. This should be set to `true` only for port 465. For every other port, it should be `false`. Setting it to `false` does not mean that Nodemailer would not use TLS. Nodemailer would still try to upgrade the connection to use TLS if the server supports it.
|
|
43
|
-
- Older Node versions do not fully support the certificate chain of the newest Let's Encrypt certificates. Either set [tls.rejectUnauthorized](https://nodejs.org/dist/latest-v16.x/docs/api/tls.html#tlsconnectoptions-callback) to `false` to skip chain verification or upgrade your Node version
|
|
44
|
-
|
|
45
|
-
```js
|
|
46
|
-
let configOptions = {
|
|
47
|
-
host: 'smtp.example.com',
|
|
48
|
-
port: 587,
|
|
49
|
-
tls: {
|
|
50
|
-
rejectUnauthorized: true,
|
|
51
|
-
minVersion: 'TLSv1.2'
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
#### I have issues with DNS / hosts file
|
|
57
|
-
|
|
58
|
-
Node.js uses [c-ares](https://nodejs.org/en/docs/meta/topics/dependencies/#c-ares) to resolve domain names, not the DNS library provided by the system, so if you have some custom DNS routing set up, it might be ignored. Nodemailer runs [dns.resolve4()](https://nodejs.org/dist/latest-v16.x/docs/api/dns.html#dnsresolve4hostname-options-callback) and [dns.resolve6()](https://nodejs.org/dist/latest-v16.x/docs/api/dns.html#dnsresolve6hostname-options-callback) to resolve hostname into an IP address. If both calls fail, then Nodemailer will fall back to [dns.lookup()](https://nodejs.org/dist/latest-v16.x/docs/api/dns.html#dnslookuphostname-options-callback). If this does not work for you, you can hard code the IP address into the configuration like shown below. In that case, Nodemailer would not perform any DNS lookups.
|
|
59
|
-
|
|
60
|
-
```js
|
|
61
|
-
let configOptions = {
|
|
62
|
-
host: '1.2.3.4',
|
|
63
|
-
port: 465,
|
|
64
|
-
secure: true,
|
|
65
|
-
tls: {
|
|
66
|
-
// must provide server name, otherwise TLS certificate check will fail
|
|
67
|
-
servername: 'example.com'
|
|
68
|
-
}
|
|
69
|
-
};
|
|
10
|
+
```bash
|
|
11
|
+
npm install @depup/nodemailer
|
|
70
12
|
```
|
|
71
13
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
If you are having issues with Nodemailer, then the best way to find help would be [Stack Overflow](https://stackoverflow.com/search?q=nodemailer) or revisit the [docs](https://nodemailer.com/about/).
|
|
79
|
-
|
|
80
|
-
### License
|
|
81
|
-
|
|
82
|
-
Nodemailer is licensed under the **MIT No Attribution license**
|
|
14
|
+
| Field | Value |
|
|
15
|
+
|-------|-------|
|
|
16
|
+
| Original | [nodemailer](https://www.npmjs.com/package/nodemailer) @ 8.0.2 |
|
|
17
|
+
| Processed | 2026-03-09 |
|
|
18
|
+
| Smoke test | passed |
|
|
19
|
+
| Deps updated | 0 |
|
|
83
20
|
|
|
84
21
|
---
|
|
85
22
|
|
|
86
|
-
|
|
23
|
+
Source: https://github.com/depup/npm | Original: https://www.npmjs.com/package/nodemailer
|
|
24
|
+
|
|
25
|
+
License inherited from the original package.
|
package/changes.json
ADDED
|
@@ -361,6 +361,20 @@ function addressparser(str, options) {
|
|
|
361
361
|
}
|
|
362
362
|
});
|
|
363
363
|
|
|
364
|
+
// Merge fragments from unquoted display names containing commas/semicolons.
|
|
365
|
+
// When "Joe Foo, PhD <joe@example.com>" is split on the comma, it produces
|
|
366
|
+
// [{name:"Joe Foo", address:""}, {name:"PhD", address:"joe@example.com"}].
|
|
367
|
+
// Detect this pattern and recombine: a name-only entry followed by an entry
|
|
368
|
+
// that has both a name and an address (from angle-bracket notation).
|
|
369
|
+
for (let i = parsedAddresses.length - 2; i >= 0; i--) {
|
|
370
|
+
let current = parsedAddresses[i];
|
|
371
|
+
let next = parsedAddresses[i + 1];
|
|
372
|
+
if (current.address === '' && current.name && !current.group && next.address && next.name && !next.group) {
|
|
373
|
+
next.name = current.name + ', ' + next.name;
|
|
374
|
+
parsedAddresses.splice(i, 1);
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
364
378
|
if (options.flatten) {
|
|
365
379
|
let addresses = [];
|
|
366
380
|
let walkAddressList = list => {
|
|
@@ -15,6 +15,7 @@ const CONNECTION_TIMEOUT = 2 * 60 * 1000; // how much to wait for the connection
|
|
|
15
15
|
const SOCKET_TIMEOUT = 10 * 60 * 1000; // how much to wait for socket inactivity before disconnecting the client
|
|
16
16
|
const GREETING_TIMEOUT = 30 * 1000; // how much to wait after connection is established but SMTP greeting is not receieved
|
|
17
17
|
const DNS_TIMEOUT = 30 * 1000; // how much to wait for resolveHostname
|
|
18
|
+
const TEARDOWN_NOOP = () => {}; // reusable no-op handler for absorbing errors during socket teardown
|
|
18
19
|
|
|
19
20
|
/**
|
|
20
21
|
* Generates a SMTP connection object
|
|
@@ -505,6 +506,9 @@ class SMTPConnection extends EventEmitter {
|
|
|
505
506
|
socket.removeListener('end', this._onSocketEnd);
|
|
506
507
|
socket.removeListener('error', this._onSocketError);
|
|
507
508
|
socket.removeListener('error', this._onConnectionSocketError);
|
|
509
|
+
// Absorb errors that may fire during socket teardown (e.g. server
|
|
510
|
+
// sending cleartext after TLS shutdown triggers ERR_SSL_BAD_RECORD_TYPE)
|
|
511
|
+
socket.on('error', TEARDOWN_NOOP);
|
|
508
512
|
socket[closeMethod]();
|
|
509
513
|
} catch (_E) {
|
|
510
514
|
// just ignore
|
|
@@ -147,6 +147,14 @@
|
|
|
147
147
|
"secure": true
|
|
148
148
|
},
|
|
149
149
|
|
|
150
|
+
"GmailWorkspace": {
|
|
151
|
+
"description": "Gmail Workspace",
|
|
152
|
+
"aliases": ["Google Workspace Mail"],
|
|
153
|
+
"host": "smtp-relay.gmail.com",
|
|
154
|
+
"port": 465,
|
|
155
|
+
"secure": true
|
|
156
|
+
},
|
|
157
|
+
|
|
150
158
|
"GMX": {
|
|
151
159
|
"description": "GMX Mail",
|
|
152
160
|
"domains": ["gmx.com", "gmx.net", "gmx.de"],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depup/nodemailer",
|
|
3
|
-
"version": "8.0.
|
|
4
|
-
"description": "Easy as cake e-mail sending from your Node.js applications",
|
|
3
|
+
"version": "8.0.2-depup.0",
|
|
4
|
+
"description": "[DepUp] Easy as cake e-mail sending from your Node.js applications",
|
|
5
5
|
"main": "lib/nodemailer.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "node --test --test-concurrency=1 test/**/*.test.js test/**/*-test.js",
|
|
@@ -17,6 +17,10 @@
|
|
|
17
17
|
"url": "https://github.com/nodemailer/nodemailer.git"
|
|
18
18
|
},
|
|
19
19
|
"keywords": [
|
|
20
|
+
"depup",
|
|
21
|
+
"dependency-bumped",
|
|
22
|
+
"updated-deps",
|
|
23
|
+
"nodemailer",
|
|
20
24
|
"Nodemailer"
|
|
21
25
|
],
|
|
22
26
|
"author": "Andris Reinman",
|
|
@@ -26,22 +30,30 @@
|
|
|
26
30
|
},
|
|
27
31
|
"homepage": "https://nodemailer.com/",
|
|
28
32
|
"devDependencies": {
|
|
29
|
-
"@aws-sdk/client-sesv2": "
|
|
33
|
+
"@aws-sdk/client-sesv2": "3.1004.0",
|
|
30
34
|
"bunyan": "1.8.15",
|
|
31
|
-
"c8": "
|
|
32
|
-
"eslint": "
|
|
35
|
+
"c8": "11.0.0",
|
|
36
|
+
"eslint": "10.0.3",
|
|
33
37
|
"eslint-config-prettier": "10.1.8",
|
|
34
|
-
"globals": "
|
|
38
|
+
"globals": "17.4.0",
|
|
35
39
|
"libbase64": "1.3.0",
|
|
36
40
|
"libmime": "5.3.7",
|
|
37
41
|
"libqp": "2.1.1",
|
|
38
42
|
"nodemailer-ntlm-auth": "1.0.4",
|
|
39
43
|
"prettier": "3.8.1",
|
|
40
|
-
"proxy": "
|
|
44
|
+
"proxy": "1.0.2",
|
|
41
45
|
"proxy-test-server": "1.0.0",
|
|
42
|
-
"smtp-server": "
|
|
46
|
+
"smtp-server": "3.18.1"
|
|
43
47
|
},
|
|
44
48
|
"engines": {
|
|
45
49
|
"node": ">=6.0.0"
|
|
50
|
+
},
|
|
51
|
+
"depup": {
|
|
52
|
+
"changes": {},
|
|
53
|
+
"depsUpdated": 0,
|
|
54
|
+
"originalPackage": "nodemailer",
|
|
55
|
+
"originalVersion": "8.0.2",
|
|
56
|
+
"processedAt": "2026-03-09T12:23:14.763Z",
|
|
57
|
+
"smokeTest": "passed"
|
|
46
58
|
}
|
|
47
59
|
}
|