nodemailer 6.7.2 → 6.7.3
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 +9 -1
- package/README.md +29 -7
- package/lib/qp/index.js +1 -1
- package/lib/smtp-connection/index.js +1 -1
- package/lib/well-known/services.json +7 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 6.7.3 2022-03-21
|
|
4
|
+
|
|
5
|
+
- Typo fixes
|
|
6
|
+
- Added stale issue automation fir Github
|
|
7
|
+
- Add Infomaniak config to well known service (popod)
|
|
8
|
+
- Update Outlook/Hotmail host in well known services (popod)
|
|
9
|
+
- fix: DSN recipient gets ignored (KornKalle)
|
|
10
|
+
|
|
3
11
|
## 6.7.2 2021-11-26
|
|
4
12
|
|
|
5
13
|
- Fix proxies for account verification
|
|
@@ -81,7 +89,7 @@
|
|
|
81
89
|
## 6.4.7 2020-05-28
|
|
82
90
|
|
|
83
91
|
- Always set charset=utf-8 for Content-Type headers
|
|
84
|
-
- Catch error
|
|
92
|
+
- Catch error when using invalid crypto.sign input
|
|
85
93
|
|
|
86
94
|
## 6.4.6 2020-03-20
|
|
87
95
|
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://nodemailer.com/about/)
|
|
4
4
|
|
|
5
|
-
Send
|
|
5
|
+
Send emails from Node.js – easy as cake! 🍰✉️
|
|
6
6
|
|
|
7
7
|
[](https://nodemailer.com/about/)
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ See [nodemailer.com](https://nodemailer.com/) for documentation and terms.
|
|
|
10
10
|
|
|
11
11
|
## Having an issue?
|
|
12
12
|
|
|
13
|
-
> Nodemailer supports all Node.js versions starting from Node.js@v6.0.0.
|
|
13
|
+
> Nodemailer supports all Node.js versions starting from Node.js@v6.0.0. The existing test suite does not support such old Node.js versions, so all features are not tested. From time to time, some regression bugs might occur because of this.
|
|
14
14
|
|
|
15
15
|
#### First review the docs
|
|
16
16
|
|
|
@@ -18,20 +18,42 @@ Documentation for Nodemailer can be found at [nodemailer.com](https://nodemailer
|
|
|
18
18
|
|
|
19
19
|
#### Nodemailer throws a SyntaxError for "..."
|
|
20
20
|
|
|
21
|
-
You are using older Node.js version than v6.0. Upgrade Node.js to get support for the spread operator.
|
|
21
|
+
You are using an older Node.js version than v6.0. Upgrade Node.js to get support for the spread operator.
|
|
22
22
|
|
|
23
23
|
#### I'm having issues with Gmail
|
|
24
24
|
|
|
25
|
-
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/).
|
|
25
|
+
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/).
|
|
26
26
|
|
|
27
27
|
#### I get ETIMEDOUT errors
|
|
28
28
|
|
|
29
|
-
Check your firewall settings. Timeout usually occurs when you try to open a connection to a port
|
|
29
|
+
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.
|
|
30
|
+
|
|
31
|
+
#### Nodemailer works on one machine but not in another
|
|
32
|
+
|
|
33
|
+
It's either a firewall issue, or your SMTP server blocks authentication attempts from some servers.
|
|
30
34
|
|
|
31
35
|
#### I get TLS errors
|
|
32
36
|
|
|
33
|
-
- If you are running the code
|
|
34
|
-
- Latest Node versions allow only TLS versions 1.2 and higher
|
|
37
|
+
- 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.
|
|
38
|
+
- 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.
|
|
39
|
+
- You might have the wrong value for the `secure` option. This is `true` _only_ for port 465. For every other port, it should be `false`. Setting `secure` 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.
|
|
40
|
+
- Older Node versions do not support the newest Let's Encrypt certificates. Either set `tls.rejectUnauthorized` to `false` or upgrade your Node version
|
|
41
|
+
|
|
42
|
+
#### I have issues with DNS / hosts file
|
|
43
|
+
|
|
44
|
+
Nodemailer uses `dns.resolve4()` and `dns.resolve6()` to resolve hostname into an IP address. If both calls fail, then Nodemailer will fall back to `dns.lookup()`. If this does not work for you, you can hard code the IP address into the configuration. In that case, Nodemailer would not perform any DNS lookups.
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
let configOptions = {
|
|
48
|
+
host: "1.2.3.4",
|
|
49
|
+
port: 465,
|
|
50
|
+
secure: true,
|
|
51
|
+
tls: {
|
|
52
|
+
// must provide server name, otherwise TLS certificate check will fail
|
|
53
|
+
servername: "example.com"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
```
|
|
35
57
|
|
|
36
58
|
#### I have a different problem
|
|
37
59
|
|
package/lib/qp/index.js
CHANGED
|
@@ -149,7 +149,7 @@ function checkRanges(nr, ranges) {
|
|
|
149
149
|
*
|
|
150
150
|
* @constructor
|
|
151
151
|
* @param {Object} options Stream options
|
|
152
|
-
* @param {Number} [options.lineLength=76] Maximum
|
|
152
|
+
* @param {Number} [options.lineLength=76] Maximum length for lines, set to false to disable wrapping
|
|
153
153
|
*/
|
|
154
154
|
class Encoder extends Transform {
|
|
155
155
|
constructor(options) {
|
|
@@ -1108,7 +1108,7 @@ class SMTPConnection extends EventEmitter {
|
|
|
1108
1108
|
notify = notify.join(',');
|
|
1109
1109
|
}
|
|
1110
1110
|
|
|
1111
|
-
let orcpt = (params.
|
|
1111
|
+
let orcpt = (params.recipient || params.orcpt || '').toString() || null;
|
|
1112
1112
|
if (orcpt && orcpt.indexOf(';') < 0) {
|
|
1113
1113
|
orcpt = 'rfc822;' + orcpt;
|
|
1114
1114
|
}
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"Hotmail": {
|
|
73
73
|
"aliases": ["Outlook", "Outlook.com", "Hotmail.com"],
|
|
74
74
|
"domains": ["hotmail.com", "outlook.com"],
|
|
75
|
-
"host": "smtp.
|
|
75
|
+
"host": "smtp-mail.outlook.com",
|
|
76
76
|
"port": 587
|
|
77
77
|
},
|
|
78
78
|
|
|
@@ -83,6 +83,12 @@
|
|
|
83
83
|
"port": 587
|
|
84
84
|
},
|
|
85
85
|
|
|
86
|
+
"Infomaniak": {
|
|
87
|
+
"host": "mail.infomaniak.com",
|
|
88
|
+
"domains": ["ik.me", "ikmail.com", "etik.com"],
|
|
89
|
+
"port": 587
|
|
90
|
+
},
|
|
91
|
+
|
|
86
92
|
"mail.ee": {
|
|
87
93
|
"host": "smtp.mail.ee"
|
|
88
94
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodemailer",
|
|
3
|
-
"version": "6.7.
|
|
3
|
+
"version": "6.7.3",
|
|
4
4
|
"description": "Easy as cake e-mail sending from your Node.js applications",
|
|
5
5
|
"main": "lib/nodemailer.js",
|
|
6
6
|
"scripts": {
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
},
|
|
21
21
|
"homepage": "https://nodemailer.com/",
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@aws-sdk/client-ses": "3.
|
|
24
|
-
"aws-sdk": "2.
|
|
23
|
+
"@aws-sdk/client-ses": "3.54.1",
|
|
24
|
+
"aws-sdk": "2.1096.0",
|
|
25
25
|
"bunyan": "1.8.15",
|
|
26
|
-
"chai": "4.3.
|
|
26
|
+
"chai": "4.3.6",
|
|
27
27
|
"eslint-config-nodemailer": "1.2.0",
|
|
28
|
-
"eslint-config-prettier": "8.
|
|
28
|
+
"eslint-config-prettier": "8.5.0",
|
|
29
29
|
"grunt": "1.4.1",
|
|
30
30
|
"grunt-cli": "1.4.3",
|
|
31
31
|
"grunt-eslint": "24.0.0",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"libbase64": "1.2.1",
|
|
34
34
|
"libmime": "5.0.0",
|
|
35
35
|
"libqp": "1.1.0",
|
|
36
|
-
"mocha": "9.
|
|
36
|
+
"mocha": "9.2.2",
|
|
37
37
|
"nodemailer-ntlm-auth": "1.0.1",
|
|
38
38
|
"proxy": "1.0.2",
|
|
39
39
|
"proxy-test-server": "1.0.0",
|
|
40
|
-
"sinon": "
|
|
41
|
-
"smtp-server": "3.
|
|
40
|
+
"sinon": "13.0.1",
|
|
41
|
+
"smtp-server": "3.10.0"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|
|
44
44
|
"node": ">=6.0.0"
|