nodemailer 4.6.7 → 4.6.8

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 CHANGED
@@ -1,281 +1,286 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 4.6.8 2018-08-15
4
+
5
+ - Use first IP address from DNS resolution when using a proxy (Limbozz) [d4ca847c]
6
+ - Return raw email from SES transport (gabegorelick) [3aa08967]
7
+
3
8
  ## 4.6.7 2018-06-15
4
9
 
5
- * Added option `skipEncoding` to JSONTransport
10
+ - Added option `skipEncoding` to JSONTransport
6
11
 
7
12
  ## 4.6.6 2018-06-10
8
13
 
9
- * Fixes mime encoded-word compatibility issue with invalid clients like Zimbra
14
+ - Fixes mime encoded-word compatibility issue with invalid clients like Zimbra
10
15
 
11
16
  ## 4.6.5 2018-05-23
12
17
 
13
- * Fixed broken DKIM stream in Node.js v10
14
- * Updated error messages for SMTP responses to not include a newline
18
+ - Fixed broken DKIM stream in Node.js v10
19
+ - Updated error messages for SMTP responses to not include a newline
15
20
 
16
21
  ## 4.6.4 2018-03-31
17
22
 
18
- * Readded logo author link to README that was accidentally removed a while ago
23
+ - Readded logo author link to README that was accidentally removed a while ago
19
24
 
20
25
  ## 4.6.3 2018-03-13
21
26
 
22
- * Removed unneeded dependency
27
+ - Removed unneeded dependency
23
28
 
24
29
  ## 4.6.2 2018-03-06
25
30
 
26
- * When redirecting URL calls then do not include original POST content
31
+ - When redirecting URL calls then do not include original POST content
27
32
 
28
33
  ## 4.6.1 2018-03-06
29
34
 
30
- * Fixed Smtp connection freezing, when trying to send after close / quit (twawszczak) [73d3911c]
35
+ - Fixed Smtp connection freezing, when trying to send after close / quit (twawszczak) [73d3911c]
31
36
 
32
37
  ## 4.6.0 2018-02-22
33
38
 
34
- * Support socks module v2 in addition to v1 [e228bcb2]
35
- * Fixed invalid promise return value when using createTestAccount [5524e627]
36
- * Allow using local addresses [8f6fa35f]
39
+ - Support socks module v2 in addition to v1 [e228bcb2]
40
+ - Fixed invalid promise return value when using createTestAccount [5524e627]
41
+ - Allow using local addresses [8f6fa35f]
37
42
 
38
43
  ## 4.5.0 2018-02-21
39
44
 
40
- * Added new message transport option `normalizeHeaderKey(key)=>normalizedKey` for custom header formatting
45
+ - Added new message transport option `normalizeHeaderKey(key)=>normalizedKey` for custom header formatting
41
46
 
42
47
  ## 4.4.2 2018-01-20
43
48
 
44
- * Added sponsors section to README
45
- * enclose encodeURIComponent in try..catch to handle invalid urls
49
+ - Added sponsors section to README
50
+ - enclose encodeURIComponent in try..catch to handle invalid urls
46
51
 
47
52
  ## 4.4.1 2017-12-08
48
53
 
49
- * Better handling of unexpectedly dropping connections
54
+ - Better handling of unexpectedly dropping connections
50
55
 
51
56
  ## 4.4.0 2017-11-10
52
57
 
53
- * Changed default behavior for attachment option contentTransferEncoding. If it is unset then base64 encoding is used for the attachment. If it is set to false then previous default applies (base64 for most, 7bit for text)
58
+ - Changed default behavior for attachment option contentTransferEncoding. If it is unset then base64 encoding is used for the attachment. If it is set to false then previous default applies (base64 for most, 7bit for text)
54
59
 
55
60
  ## 4.3.1 2017-10-25
56
61
 
57
- * Fixed a confict with Electron.js where timers do not have unref method
62
+ - Fixed a confict with Electron.js where timers do not have unref method
58
63
 
59
64
  ## 4.3.0 2017-10-23
60
65
 
61
- * Added new mail object method `mail.normalize(cb)` that should make creating HTTP API based transports much easier
66
+ - Added new mail object method `mail.normalize(cb)` that should make creating HTTP API based transports much easier
62
67
 
63
68
  ## 4.2.0 2017-10-13
64
69
 
65
- * Expose streamed messages size and timers in info response
70
+ - Expose streamed messages size and timers in info response
66
71
 
67
72
  ## v4.1.3 2017-10-06
68
73
 
69
- * Allow generating preview links without calling createTestAccount first
74
+ - Allow generating preview links without calling createTestAccount first
70
75
 
71
76
  ## v4.1.2 2017-10-03
72
77
 
73
- * No actual changes. Needed to push updated README to npmjs
78
+ - No actual changes. Needed to push updated README to npmjs
74
79
 
75
80
  ## v4.1.1 2017-09-25
76
81
 
77
- * Fixed JSONTransport attachment handling
82
+ - Fixed JSONTransport attachment handling
78
83
 
79
84
  ## v4.1.0 2017-08-28
80
85
 
81
- * Added new methods `createTestAccount` and `getTestMessageUrl` to use autogenerated email accounts from https://Ethereal.email
86
+ - Added new methods `createTestAccount` and `getTestMessageUrl` to use autogenerated email accounts from https://Ethereal.email
82
87
 
83
88
  ## v4.0.1 2017-04-13
84
89
 
85
- * Fixed issue with LMTP and STARTTLS
90
+ - Fixed issue with LMTP and STARTTLS
86
91
 
87
92
  ## v4.0.0 2017-04-06
88
93
 
89
- * License changed from EUPLv1.1 to MIT
94
+ - License changed from EUPLv1.1 to MIT
90
95
 
91
96
  ## v3.1.8 2017-03-21
92
97
 
93
- * Fixed invalid List-\* header generation
98
+ - Fixed invalid List-\* header generation
94
99
 
95
100
  ## v3.1.7 2017-03-14
96
101
 
97
- * Emit an error if STARTTLS ends with connection being closed
102
+ - Emit an error if STARTTLS ends with connection being closed
98
103
 
99
104
  ## v3.1.6 2017-03-14
100
105
 
101
- * Expose last server response for smtpConnection
106
+ - Expose last server response for smtpConnection
102
107
 
103
108
  ## v3.1.5 2017-03-08
104
109
 
105
- * Fixed SES transport, added missing `response` value
110
+ - Fixed SES transport, added missing `response` value
106
111
 
107
112
  ## v3.1.4 2017-02-26
108
113
 
109
- * Fixed DKIM calculation for empty body
110
- * Ensure linebreak after message content. This fixes DKIM signatures for non-multipart messages where input did not end with a newline
114
+ - Fixed DKIM calculation for empty body
115
+ - Ensure linebreak after message content. This fixes DKIM signatures for non-multipart messages where input did not end with a newline
111
116
 
112
117
  ## v3.1.3 2017-02-17
113
118
 
114
- * Fixed missing `transport.verify()` methods for SES transport
119
+ - Fixed missing `transport.verify()` methods for SES transport
115
120
 
116
121
  ## v3.1.2 2017-02-17
117
122
 
118
- * Added missing error handlers for Sendmail, SES and Stream transports. If a messages contained an invalid URL as attachment then these transports threw an uncatched error
123
+ - Added missing error handlers for Sendmail, SES and Stream transports. If a messages contained an invalid URL as attachment then these transports threw an uncatched error
119
124
 
120
125
  ## v3.1.1 2017-02-13
121
126
 
122
- * Fixed missing `transport.on('idle')` and `transport.isIdle()` methods for SES transports
127
+ - Fixed missing `transport.on('idle')` and `transport.isIdle()` methods for SES transports
123
128
 
124
129
  ## v3.1.0 2017-02-13
125
130
 
126
- * Added built-in transport for AWS SES. [Docs](http://localhost:1313/transports/ses/)
127
- * Updated stream transport to allow building JSON strings. [Docs](http://localhost:1313/transports/stream/#json-transport)
128
- * Added new method _mail.resolveAll_ that fetches all attachments and such to be able to more easily build API-based transports
131
+ - Added built-in transport for AWS SES. [Docs](http://localhost:1313/transports/ses/)
132
+ - Updated stream transport to allow building JSON strings. [Docs](http://localhost:1313/transports/stream/#json-transport)
133
+ - Added new method _mail.resolveAll_ that fetches all attachments and such to be able to more easily build API-based transports
129
134
 
130
135
  ## v3.0.2 2017-02-04
131
136
 
132
- * Fixed a bug with OAuth2 login where error callback was fired twice if getToken was not available.
137
+ - Fixed a bug with OAuth2 login where error callback was fired twice if getToken was not available.
133
138
 
134
139
  ## v3.0.1 2017-02-03
135
140
 
136
- * Fixed a bug where Nodemailer threw an exception if `disableFileAccess` option was used
137
- * Added FLOSS [exception declaration](FLOSS_EXCEPTIONS.md)
141
+ - Fixed a bug where Nodemailer threw an exception if `disableFileAccess` option was used
142
+ - Added FLOSS [exception declaration](FLOSS_EXCEPTIONS.md)
138
143
 
139
144
  ## v3.0.0 2017-01-31
140
145
 
141
- * Initial version of Nodemailer 3
146
+ - Initial version of Nodemailer 3
142
147
 
143
148
  This update brings a lot of breaking changes:
144
149
 
145
- * License changed from MIT to **EUPL-1.1**. This was possible as the new version of Nodemailer is a major rewrite. The features I don't have ownership for, were removed or reimplemented. If there's still some snippets in the code that have vague ownership then notify <mailto:andris@kreata.ee> about the conflicting code and I'll fix it.
146
- * Requires **Node.js v6+**
147
- * All **templating is gone**. It was too confusing to use and to be really universal a huge list of different renderers would be required. Nodemailer is about email, not about parsing different template syntaxes
148
- * **No NTLM authentication**. It was too difficult to re-implement. If you still need it then it would be possible to introduce a pluggable SASL interface where you could load the NTLM module in your own code and pass it to Nodemailer. Currently this is not possible.
149
- * **OAuth2 authentication** is built in and has a different [configuration](https://nodemailer.com/smtp/oauth2/). You can use both user (3LO) and service (2LO) accounts to generate access tokens from Nodemailer. Additionally there's a new feature to authenticate differently for every message – useful if your application sends on behalf of different users instead of a single sender.
150
- * **Improved Calendaring**. Provide an ical file to Nodemailer to send out [calendar events](https://nodemailer.com/message/calendar-events/).
150
+ - License changed from MIT to **EUPL-1.1**. This was possible as the new version of Nodemailer is a major rewrite. The features I don't have ownership for, were removed or reimplemented. If there's still some snippets in the code that have vague ownership then notify <mailto:andris@kreata.ee> about the conflicting code and I'll fix it.
151
+ - Requires **Node.js v6+**
152
+ - All **templating is gone**. It was too confusing to use and to be really universal a huge list of different renderers would be required. Nodemailer is about email, not about parsing different template syntaxes
153
+ - **No NTLM authentication**. It was too difficult to re-implement. If you still need it then it would be possible to introduce a pluggable SASL interface where you could load the NTLM module in your own code and pass it to Nodemailer. Currently this is not possible.
154
+ - **OAuth2 authentication** is built in and has a different [configuration](https://nodemailer.com/smtp/oauth2/). You can use both user (3LO) and service (2LO) accounts to generate access tokens from Nodemailer. Additionally there's a new feature to authenticate differently for every message – useful if your application sends on behalf of different users instead of a single sender.
155
+ - **Improved Calendaring**. Provide an ical file to Nodemailer to send out [calendar events](https://nodemailer.com/message/calendar-events/).
151
156
 
152
157
  And also some non-breaking changes:
153
158
 
154
- * All **dependencies were dropped**. There is exactly 0 dependencies needed to use Nodemailer. This brings the installation time of Nodemailer from NPM down to less than 2 seconds
155
- * **Delivery status notifications** added to Nodemailer
156
- * Improved and built-in **DKIM** signing of messages. Previously you needed an external module for this and it did quite a lousy job with larger messages
157
- * **Stream transport** to return a RFC822 formatted message as a stream. Useful if you want to use Nodemailer as a preprocessor and not for actual delivery.
158
- * **Sendmail** transport built-in, no need for external transport plugin
159
+ - All **dependencies were dropped**. There is exactly 0 dependencies needed to use Nodemailer. This brings the installation time of Nodemailer from NPM down to less than 2 seconds
160
+ - **Delivery status notifications** added to Nodemailer
161
+ - Improved and built-in **DKIM** signing of messages. Previously you needed an external module for this and it did quite a lousy job with larger messages
162
+ - **Stream transport** to return a RFC822 formatted message as a stream. Useful if you want to use Nodemailer as a preprocessor and not for actual delivery.
163
+ - **Sendmail** transport built-in, no need for external transport plugin
159
164
 
160
165
  See [Nodemailer.com](https://nodemailer.com/) for full documentation
161
166
 
162
167
  ## 2.7.0 2016-12-08
163
168
 
164
- * Bumped mailcomposer that generates encoded-words differently which might break some tests
169
+ - Bumped mailcomposer that generates encoded-words differently which might break some tests
165
170
 
166
171
  ## 2.6.0 2016-09-05
167
172
 
168
- * Added new options disableFileAccess and disableUrlAccess
169
- * Fixed envelope handling where cc/bcc fields were ignored in the envelope object
173
+ - Added new options disableFileAccess and disableUrlAccess
174
+ - Fixed envelope handling where cc/bcc fields were ignored in the envelope object
170
175
 
171
176
  ## 2.4.2 2016-05-25
172
177
 
173
- * Removed shrinkwrap file. Seemed to cause more trouble than help
178
+ - Removed shrinkwrap file. Seemed to cause more trouble than help
174
179
 
175
180
  ## 2.4.1 2016-05-12
176
181
 
177
- * Fixed outdated shrinkwrap file
182
+ - Fixed outdated shrinkwrap file
178
183
 
179
184
  ## 2.4.0 2016-05-11
180
185
 
181
- * Bumped mailcomposer module to allow using `false` as attachment filename (suppresses filename usage)
182
- * Added NTLM authentication support
186
+ - Bumped mailcomposer module to allow using `false` as attachment filename (suppresses filename usage)
187
+ - Added NTLM authentication support
183
188
 
184
189
  ## 2.3.2 2016-04-11
185
190
 
186
- * Bumped smtp transport modules to get newest smtp-connection that fixes SMTPUTF8 support for internationalized email addresses
191
+ - Bumped smtp transport modules to get newest smtp-connection that fixes SMTPUTF8 support for internationalized email addresses
187
192
 
188
193
  ## 2.3.1 2016-04-08
189
194
 
190
- * Bumped mailcomposer to have better support for message/822 attachments
195
+ - Bumped mailcomposer to have better support for message/822 attachments
191
196
 
192
197
  ## 2.3.0 2016-03-03
193
198
 
194
- * Fixed a bug with attachment filename that contains mixed unicode and dashes
195
- * Added built-in support for proxies by providing a new SMTP option `proxy` that takes a proxy configuration url as its value
196
- * Added option `transport` to dynamically load transport plugins
197
- * Do not require globally installed grunt-cli
199
+ - Fixed a bug with attachment filename that contains mixed unicode and dashes
200
+ - Added built-in support for proxies by providing a new SMTP option `proxy` that takes a proxy configuration url as its value
201
+ - Added option `transport` to dynamically load transport plugins
202
+ - Do not require globally installed grunt-cli
198
203
 
199
204
  ## 2.2.1 2016-02-20
200
205
 
201
- * Fixed a bug in SMTP requireTLS option that was broken
206
+ - Fixed a bug in SMTP requireTLS option that was broken
202
207
 
203
208
  ## 2.2.0 2016-02-18
204
209
 
205
- * Removed the need to use `clone` dependency
206
- * Added new method `verify` to check SMTP configuration
207
- * Direct transport uses STARTTLS by default, fallbacks to plaintext if STARTTLS fails
208
- * Added new message option `list` for setting List-\* headers
209
- * Add simple proxy support with `getSocket` method
210
- * Added new message option `textEncoding`. If `textEncoding` is not set then detect best encoding automatically
211
- * Added new message option `icalEvent` to embed iCalendar events. Example [here](examples/ical-event.js)
212
- * Added new attachment option `raw` to use prepared MIME contents instead of generating a new one. This might be useful when you want to handcraft some parts of the message yourself, for example if you want to inject a PGP encrypted message as the contents of a MIME node
213
- * Added new message option `raw` to use an existing MIME message instead of generating a new one
210
+ - Removed the need to use `clone` dependency
211
+ - Added new method `verify` to check SMTP configuration
212
+ - Direct transport uses STARTTLS by default, fallbacks to plaintext if STARTTLS fails
213
+ - Added new message option `list` for setting List-\* headers
214
+ - Add simple proxy support with `getSocket` method
215
+ - Added new message option `textEncoding`. If `textEncoding` is not set then detect best encoding automatically
216
+ - Added new message option `icalEvent` to embed iCalendar events. Example [here](examples/ical-event.js)
217
+ - Added new attachment option `raw` to use prepared MIME contents instead of generating a new one. This might be useful when you want to handcraft some parts of the message yourself, for example if you want to inject a PGP encrypted message as the contents of a MIME node
218
+ - Added new message option `raw` to use an existing MIME message instead of generating a new one
214
219
 
215
220
  ## 2.1.0 2016-02-01
216
221
 
217
222
  Republishing 2.1.0-rc.1 as stable. To recap, here's the notable changes between v2.0 and v2.1:
218
223
 
219
- * Implemented templating support. You can either use a simple built-in renderer or some external advanced renderer, eg. [node-email-templates](https://github.com/niftylettuce/node-email-templates). Templating [docs](http://nodemailer.com/2-0-0-beta/templating/).
220
- * Updated smtp-pool to emit 'idle' events in order to handle message queue more effectively
221
- * Updated custom header handling, works everywhere the same now, no differences between adding custom headers to the message or to an attachment
224
+ - Implemented templating support. You can either use a simple built-in renderer or some external advanced renderer, eg. [node-email-templates](https://github.com/niftylettuce/node-email-templates). Templating [docs](http://nodemailer.com/2-0-0-beta/templating/).
225
+ - Updated smtp-pool to emit 'idle' events in order to handle message queue more effectively
226
+ - Updated custom header handling, works everywhere the same now, no differences between adding custom headers to the message or to an attachment
222
227
 
223
228
  ## 2.1.0-rc.1 2016-01-25
224
229
 
225
230
  Sneaked in some new features even though it is already rc
226
231
 
227
- * If a SMTP pool is closed while there are still messages in a queue, the message callbacks are invoked with an error
228
- * In case of SMTP pool the transporter emits 'idle' when there is a free connection slot available
229
- * Added method `isIdle()` that checks if a pool has still some free connection slots available
232
+ - If a SMTP pool is closed while there are still messages in a queue, the message callbacks are invoked with an error
233
+ - In case of SMTP pool the transporter emits 'idle' when there is a free connection slot available
234
+ - Added method `isIdle()` that checks if a pool has still some free connection slots available
230
235
 
231
236
  ## 2.1.0-rc.0 2016-01-20
232
237
 
233
- * Bumped dependency versions
238
+ - Bumped dependency versions
234
239
 
235
240
  ## 2.1.0-beta.3 2016-01-20
236
241
 
237
- * Added support for node-email-templates templating in addition to the built-in renderer
242
+ - Added support for node-email-templates templating in addition to the built-in renderer
238
243
 
239
244
  ## 2.1.0-beta.2 2016-01-20
240
245
 
241
- * Implemented simple templating feature
246
+ - Implemented simple templating feature
242
247
 
243
248
  ## 2.1.0-beta.1 2016-01-20
244
249
 
245
- * Allow using prepared header values that are not folded or encoded by Nodemailer
250
+ - Allow using prepared header values that are not folded or encoded by Nodemailer
246
251
 
247
252
  ## 2.1.0-beta.0 2016-01-20
248
253
 
249
- * Use the same header custom structure for message root, attachments and alternatives
250
- * Ensure that Message-Id exists when accessing message
251
- * Allow using array values for custom headers (inserts every value in its own row)
254
+ - Use the same header custom structure for message root, attachments and alternatives
255
+ - Ensure that Message-Id exists when accessing message
256
+ - Allow using array values for custom headers (inserts every value in its own row)
252
257
 
253
258
  ## 2.0.0 2016-01-11
254
259
 
255
- * Released rc.2 as stable
260
+ - Released rc.2 as stable
256
261
 
257
262
  ## 2.0.0-rc.2 2016-01-04
258
263
 
259
- * Locked dependencies
264
+ - Locked dependencies
260
265
 
261
266
  ## 2.0.0-beta.2 2016-01-04
262
267
 
263
- * Updated documentation to reflect changes with SMTP handling
264
- * Use beta versions for smtp/pool/direct transports
265
- * Updated logging
268
+ - Updated documentation to reflect changes with SMTP handling
269
+ - Use beta versions for smtp/pool/direct transports
270
+ - Updated logging
266
271
 
267
272
  ## 2.0.0-beta.1 2016-01-03
268
273
 
269
- * Use bunyan compatible logger instead of the emit('log') style
270
- * Outsourced some reusable methods to nodemailer-shared
271
- * Support setting direct/smtp/pool with the default configuration
274
+ - Use bunyan compatible logger instead of the emit('log') style
275
+ - Outsourced some reusable methods to nodemailer-shared
276
+ - Support setting direct/smtp/pool with the default configuration
272
277
 
273
278
  ## 2.0.0-beta.0 2015-12-31
274
279
 
275
- * Stream errors are not silently swallowed
276
- * Do not use format=flowed
277
- * Use nodemailer-fetch to fetch URL streams
278
- * jshint replaced by eslint
280
+ - Stream errors are not silently swallowed
281
+ - Do not use format=flowed
282
+ - Use nodemailer-fetch to fetch URL streams
283
+ - jshint replaced by eslint
279
284
 
280
285
  ## v1.11.0 2015-12-28
281
286
 
@@ -371,147 +376,147 @@ Total rewrite. See migration guide here: <http://www.andrisreinman.com/nodemaile
371
376
 
372
377
  ## v0.7.1 2014-07-09
373
378
 
374
- * Upgraded aws-sdk to 2.0.5
379
+ - Upgraded aws-sdk to 2.0.5
375
380
 
376
381
  ## v0.7.0 2014-06-17
377
382
 
378
- * Bumped version to v0.7.0
379
- * Fix AWS-SES usage [5b6bc144]
380
- * Replace current SES with new SES using AWS-SDK (Elanorr) [c79d797a]
381
- * Updated README.md about Node Email Templates (niftylettuce) [e52bef81]
383
+ - Bumped version to v0.7.0
384
+ - Fix AWS-SES usage [5b6bc144]
385
+ - Replace current SES with new SES using AWS-SDK (Elanorr) [c79d797a]
386
+ - Updated README.md about Node Email Templates (niftylettuce) [e52bef81]
382
387
 
383
388
  ## v0.6.5 2014-05-15
384
389
 
385
- * Bumped version to v0.6.5
386
- * Use tildes instead of carets for dependency listing [5296ce41]
387
- * Allow clients to set a custom identityString (venables) [5373287d]
388
- * bugfix (adding "-i" to sendmail command line for each new mail) by copying this.args (vrodic) [05a8a9a3]
389
- * update copyright (gdi2290) [3a6cba3a]
390
+ - Bumped version to v0.6.5
391
+ - Use tildes instead of carets for dependency listing [5296ce41]
392
+ - Allow clients to set a custom identityString (venables) [5373287d]
393
+ - bugfix (adding "-i" to sendmail command line for each new mail) by copying this.args (vrodic) [05a8a9a3]
394
+ - update copyright (gdi2290) [3a6cba3a]
390
395
 
391
396
  ## v0.6.4 2014-05-13
392
397
 
393
- * Bumped version to v0.6.4
394
- * added npmignore, bumped dependencies [21bddcd9]
395
- * Add AOL to well-known services (msouce) [da7dd3b7]
398
+ - Bumped version to v0.6.4
399
+ - added npmignore, bumped dependencies [21bddcd9]
400
+ - Add AOL to well-known services (msouce) [da7dd3b7]
396
401
 
397
402
  ## v0.6.3 2014-04-16
398
403
 
399
- * Bumped version to v0.6.3
400
- * Upgraded simplesmtp dependency [dd367f59]
404
+ - Bumped version to v0.6.3
405
+ - Upgraded simplesmtp dependency [dd367f59]
401
406
 
402
407
  ## v0.6.2 2014-04-09
403
408
 
404
- * Bumped version to v0.6.2
405
- * Added error option to Stub transport [c423acad]
406
- * Use SVG npm badge (t3chnoboy) [677117b7]
407
- * add SendCloud to well known services (haio) [43c358e0]
408
- * High-res build-passing and NPM module badges (sahat) [9fdc37cd]
409
+ - Bumped version to v0.6.2
410
+ - Added error option to Stub transport [c423acad]
411
+ - Use SVG npm badge (t3chnoboy) [677117b7]
412
+ - add SendCloud to well known services (haio) [43c358e0]
413
+ - High-res build-passing and NPM module badges (sahat) [9fdc37cd]
409
414
 
410
415
  ## v0.6.1 2014-01-26
411
416
 
412
- * Bumped version to v0.6.1
413
- * Do not throw on multiple errors from sendmail command [c6e2cd12]
414
- * Do not require callback for pickup, fixes #238 [93eb3214]
415
- * Added AWSSecurityToken information to README, fixes #235 [58e921d1]
416
- * Added Nodemailer logo [06b7d1a8]
417
+ - Bumped version to v0.6.1
418
+ - Do not throw on multiple errors from sendmail command [c6e2cd12]
419
+ - Do not require callback for pickup, fixes #238 [93eb3214]
420
+ - Added AWSSecurityToken information to README, fixes #235 [58e921d1]
421
+ - Added Nodemailer logo [06b7d1a8]
417
422
 
418
423
  ## v0.6.0 2013-12-30
419
424
 
420
- * Bumped version to v0.6.0
421
- * Allow defining custom transport methods [ec5b48ce]
422
- * Return messageId with responseObject for all built in transport methods [74445cec]
423
- * Bumped dependency versions for mailcomposer and readable-stream [9a034c34]
424
- * Changed pickup argument name to 'directory' [01c3ea53]
425
- * Added support for IIS pickup directory with PICKUP transport (philipproplesch) [36940b59..360a2878]
426
- * Applied common styles [9e93a409]
427
- * Updated readme [c78075e7]
425
+ - Bumped version to v0.6.0
426
+ - Allow defining custom transport methods [ec5b48ce]
427
+ - Return messageId with responseObject for all built in transport methods [74445cec]
428
+ - Bumped dependency versions for mailcomposer and readable-stream [9a034c34]
429
+ - Changed pickup argument name to 'directory' [01c3ea53]
430
+ - Added support for IIS pickup directory with PICKUP transport (philipproplesch) [36940b59..360a2878]
431
+ - Applied common styles [9e93a409]
432
+ - Updated readme [c78075e7]
428
433
 
429
434
  ## v0.5.15 2013-12-13
430
435
 
431
- * bumped version to v0.5.15
432
- * Updated README, added global options info for setting uo transports [554bb0e5]
433
- * Resolve public hostname, if resolveHostname property for a transport object is set to `true` [9023a6e1..4c66b819]
436
+ - bumped version to v0.5.15
437
+ - Updated README, added global options info for setting uo transports [554bb0e5]
438
+ - Resolve public hostname, if resolveHostname property for a transport object is set to `true` [9023a6e1..4c66b819]
434
439
 
435
440
  ## v0.5.14 2013-12-05
436
441
 
437
- * bumped version to v0.5.14
438
- * Expose status for direct messages [f0312df6]
439
- * Allow to skip the X-Mailer header if xMailer value is set to 'false' [f2c20a68]
442
+ - bumped version to v0.5.14
443
+ - Expose status for direct messages [f0312df6]
444
+ - Allow to skip the X-Mailer header if xMailer value is set to 'false' [f2c20a68]
440
445
 
441
446
  ## v0.5.13 2013-12-03
442
447
 
443
- * bumped version to v0.5.13
444
- * Use the name property from the transport object to use for the domain part of message-id values (1598eee9)
448
+ - bumped version to v0.5.13
449
+ - Use the name property from the transport object to use for the domain part of message-id values (1598eee9)
445
450
 
446
451
  ## v0.5.12 2013-12-02
447
452
 
448
- * bumped version to v0.5.12
449
- * Expose transport method and transport module version if available [a495106e]
450
- * Added 'he' module instead of using custom html entity decoding [c197d102]
451
- * Added xMailer property for transport configuration object to override X-Mailer value [e8733a61]
452
- * Updated README, added description for 'mail' method [e1f5f3a6]
453
+ - bumped version to v0.5.12
454
+ - Expose transport method and transport module version if available [a495106e]
455
+ - Added 'he' module instead of using custom html entity decoding [c197d102]
456
+ - Added xMailer property for transport configuration object to override X-Mailer value [e8733a61]
457
+ - Updated README, added description for 'mail' method [e1f5f3a6]
453
458
 
454
459
  ## v0.5.11 2013-11-28
455
460
 
456
- * bumped version to v0.5.11
457
- * Updated mailcomposer version. Replaces ent with he [6a45b790e]
461
+ - bumped version to v0.5.11
462
+ - Updated mailcomposer version. Replaces ent with he [6a45b790e]
458
463
 
459
464
  ## v0.5.10 2013-11-26
460
465
 
461
- * bumped version to v0.5.10
462
- * added shorthand function mail() for direct transport type [88129bd7]
463
- * minor tweaks and typo fixes [f797409e..ceac0ca4]
466
+ - bumped version to v0.5.10
467
+ - added shorthand function mail() for direct transport type [88129bd7]
468
+ - minor tweaks and typo fixes [f797409e..ceac0ca4]
464
469
 
465
470
  ## v0.5.9 2013-11-25
466
471
 
467
- * bumped version to v0.5.9
468
- * Update for 'direct' handling [77b84e2f]
469
- * do not require callback to be provided for 'direct' type [ec51c79f]
472
+ - bumped version to v0.5.9
473
+ - Update for 'direct' handling [77b84e2f]
474
+ - do not require callback to be provided for 'direct' type [ec51c79f]
470
475
 
471
476
  ## v0.5.8 2013-11-22
472
477
 
473
- * bumped version to v0.5.8
474
- * Added support for 'direct' transport [826f226d..0dbbcbbc]
478
+ - bumped version to v0.5.8
479
+ - Added support for 'direct' transport [826f226d..0dbbcbbc]
475
480
 
476
481
  ## v0.5.7 2013-11-18
477
482
 
478
- * bumped version to v0.5.7
479
- * Replace \r\n by \n in Sendmail transport (rolftimmermans) [fed2089e..616ec90c] A lot of sendmail implementations choke on \r\n newlines and require \n This commit addresses this by transforming all \r\n sequences passed to the sendmail command with \n
483
+ - bumped version to v0.5.7
484
+ - Replace \r\n by \n in Sendmail transport (rolftimmermans) [fed2089e..616ec90c] A lot of sendmail implementations choke on \r\n newlines and require \n This commit addresses this by transforming all \r\n sequences passed to the sendmail command with \n
480
485
 
481
486
  ## v0.5.6 2013-11-15
482
487
 
483
- * bumped version to v0.5.6
484
- * Upgraded mailcomposer dependency to 0.2.4 [e5ff9c40]
485
- * Removed noCR option [e810d1b8]
486
- * Update wellknown.js, added FastMail (k-j-kleist) [cf930f6d]
488
+ - bumped version to v0.5.6
489
+ - Upgraded mailcomposer dependency to 0.2.4 [e5ff9c40]
490
+ - Removed noCR option [e810d1b8]
491
+ - Update wellknown.js, added FastMail (k-j-kleist) [cf930f6d]
487
492
 
488
493
  ## v0.5.5 2013-10-30
489
494
 
490
- * bumped version to v0.5.5
491
- * Updated mailcomposer dependnecy version to 0.2.3
492
- * Remove legacy code - node v0.4 is not supported anymore anyway
493
- * Use hostname (autodetected or from the options.name property) for Message-Id instead of "Nodemailer" (helps a bit when messages are identified as spam)
494
- * Added maxMessages info to README
495
+ - bumped version to v0.5.5
496
+ - Updated mailcomposer dependnecy version to 0.2.3
497
+ - Remove legacy code - node v0.4 is not supported anymore anyway
498
+ - Use hostname (autodetected or from the options.name property) for Message-Id instead of "Nodemailer" (helps a bit when messages are identified as spam)
499
+ - Added maxMessages info to README
495
500
 
496
501
  ## v0.5.4 2013-10-29
497
502
 
498
- * bumped version to v0.5.4
499
- * added "use strict" statements
500
- * Added DSN info to README
501
- * add support for QQ enterprise email (coderhaoxin)
502
- * Add a Bitdeli Badge to README
503
- * DSN options Passthrought into simplesmtp. (irvinzz)
503
+ - bumped version to v0.5.4
504
+ - added "use strict" statements
505
+ - Added DSN info to README
506
+ - add support for QQ enterprise email (coderhaoxin)
507
+ - Add a Bitdeli Badge to README
508
+ - DSN options Passthrought into simplesmtp. (irvinzz)
504
509
 
505
510
  ## v0.5.3 2013-10-03
506
511
 
507
- * bumped version v0.5.3
508
- * Using a stub transport to prevent sendmail from being called during a test. (jsdevel)
509
- * closes #78: sendmail transport does not work correctly on Unix machines. (jsdevel)
510
- * Updated PaaS Support list to include Modulus. (fiveisprime)
511
- * Translate self closing break tags to newline (kosmasgiannis)
512
- * fix typos (aeosynth)
512
+ - bumped version v0.5.3
513
+ - Using a stub transport to prevent sendmail from being called during a test. (jsdevel)
514
+ - closes #78: sendmail transport does not work correctly on Unix machines. (jsdevel)
515
+ - Updated PaaS Support list to include Modulus. (fiveisprime)
516
+ - Translate self closing break tags to newline (kosmasgiannis)
517
+ - fix typos (aeosynth)
513
518
 
514
519
  ## v0.5.2 2013-07-25
515
520
 
516
- * bumped version v0.5.2
517
- * Merge pull request #177 from MrSwitch/master Fixing Amazon SES, fatal error caused by bad connection
521
+ - bumped version v0.5.2
522
+ - Merge pull request #177 from MrSwitch/master Fixing Amazon SES, fatal error caused by bad connection
@@ -374,7 +374,7 @@ class Mail extends EventEmitter {
374
374
  if (err) {
375
375
  return callback(err);
376
376
  }
377
- connect(address);
377
+ connect(Array.isArray(address) ? address[0] : address);
378
378
  });
379
379
  }
380
380
  }
@@ -16,7 +16,7 @@ const shared = require('../shared');
16
16
  * * **args** an array of arguments for the sendmail binary
17
17
  *
18
18
  * @constructor
19
- * @param {Object} optional config parameter for the AWS Sendmail service
19
+ * @param {Object} optional config parameter for Sendmail
20
20
  */
21
21
  class SendmailTransport {
22
22
  constructor(options) {
@@ -6,15 +6,15 @@ const shared = require('../shared');
6
6
  const LeWindows = require('../sendmail-transport/le-windows');
7
7
 
8
8
  /**
9
- * Generates a Transport object for Sendmail
9
+ * Generates a Transport object for AWS SES
10
10
  *
11
11
  * Possible options can be the following:
12
12
  *
13
- * * **path** optional path to sendmail binary
14
- * * **args** an array of arguments for the sendmail binary
13
+ * * **sendingRate** optional Number specifying how many messages per second should be delivered to SES
14
+ * * **maxConnections** optional Number specifying max number of parallel connections to SES
15
15
  *
16
16
  * @constructor
17
- * @param {Object} optional config parameter for the AWS Sendmail service
17
+ * @param {Object} optional config parameter
18
18
  */
19
19
  class SESTransport extends EventEmitter {
20
20
  constructor(options) {
@@ -266,7 +266,8 @@ class SESTransport extends EventEmitter {
266
266
  to: envelope.to
267
267
  },
268
268
  messageId: '<' + data.MessageId + (!/@/.test(data.MessageId) ? '@' + region + '.amazonses.com' : '') + '>',
269
- response: data.MessageId
269
+ response: data.MessageId,
270
+ raw
270
271
  });
271
272
  });
272
273
  })
@@ -14,7 +14,7 @@ const LeUnix = require('../sendmail-transport/le-unix');
14
14
  * * **newline** either 'windows' or 'unix'
15
15
  *
16
16
  * @constructor
17
- * @param {Object} optional config parameter for the AWS Sendmail service
17
+ * @param {Object} optional config parameter
18
18
  */
19
19
  class StreamTransport {
20
20
  constructor(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodemailer",
3
- "version": "4.6.7",
3
+ "version": "4.6.8",
4
4
  "description": "Easy as cake e-mail sending from your Node.js applications",
5
5
  "main": "lib/nodemailer.js",
6
6
  "scripts": {
@@ -10,7 +10,9 @@
10
10
  "type": "git",
11
11
  "url": "https://github.com/nodemailer/nodemailer.git"
12
12
  },
13
- "keywords": ["Nodemailer"],
13
+ "keywords": [
14
+ "Nodemailer"
15
+ ],
14
16
  "author": "Andris Reinman",
15
17
  "license": "MIT",
16
18
  "bugs": {
@@ -23,16 +25,16 @@
23
25
  "eslint-config-nodemailer": "^1.2.0",
24
26
  "grunt": "^1.0.3",
25
27
  "grunt-cli": "^1.2.0",
26
- "grunt-eslint": "^20.2.0",
28
+ "grunt-eslint": "^21.0.0",
27
29
  "grunt-mocha-test": "^0.13.3",
28
- "libbase64": "^1.0.2",
29
- "libmime": "^3.1.0",
30
+ "libbase64": "^1.0.3",
31
+ "libmime": "^4.0.1",
30
32
  "libqp": "^1.1.0",
31
33
  "mocha": "^5.2.0",
32
34
  "proxy": "^0.2.4",
33
35
  "proxy-test-server": "^1.0.0",
34
- "sinon": "^5.1.1",
35
- "smtp-server": "^3.4.5"
36
+ "sinon": "^6.1.5",
37
+ "smtp-server": "^3.4.6"
36
38
  },
37
39
  "engines": {
38
40
  "node": ">=6.0.0"