UNPKG

23.1 kBMarkdownView Raw
1# CHANGELOG
2
3## 6.5.0 2021-02-26
4
5- Pass through textEncoding to subnodes
6- Added support for AWS SES v3 SDK
7- Fixed tests
8
9## 6.4.18 2021-02-11
10
11- Updated README
12
13## 6.4.17 2020-12-11
14
15- Allow mixing attachments with caendar alternatives
16
17## 6.4.16 2020-11-12
18
19- Applied updated prettier formating rules
20
21## 6.4.15 2020-11-06
22
23- Minor changes in header key casing
24
25## 6.4.14 2020-10-14
26
27- Disabled postinstall script
28
29## 6.4.13 2020-10-02
30
31- Fix normalizeHeaderKey method for single node messages
32
33## 6.4.12 2020-09-30
34
35- Better handling of attachment filenames that include quote symbols
36- Includes all information from the oath2 error response in the error message (Normal Gaussian) [1787f227]
37
38## 6.4.11 2020-07-29
39
40- Fixed escape sequence handling in address parsing
41
42## 6.4.10 2020-06-17
43
44- Fixed RFC822 output for MailComposer when using invalid content-type value. Mostly relevant if message attachments have stragne content-type values set.
45
46## 6.4.7 2020-05-28
47
48- Always set charset=utf-8 for Content-Type headers
49- Catch error whn using invalid crypto.sign input
50
51## 6.4.6 2020-03-20
52
53- fix: `requeueAttempts=n` should requeue `n` times (Patrick Malouin) [a27ed2f7]
54
55## 6.4.4 2020-03-01
56
57- Add `options.forceAuth` for SMTP (Patrick Malouin) [a27ed2f7]
58
59## 6.4.3 2020-02-22
60
61- Added an option to specify max number of requeues when connection closes unexpectedly (Igor Sechyn) [8a927f5a]
62
63## 6.4.2 2019-12-11
64
65- Fixed bug where array item was used with a potentially empty array
66
67## 6.4.1 2019-12-07
68
69- Fix processing server output with unterminated responses
70
71## 6.4.0 2019-12-04
72
73- Do not use auth if server does not advertise AUTH support [f419b09d]
74- add dns.CONNREFUSED (Hiroyuki Okada) [5c4c8ca8]
75
76## 6.3.1 2019-10-09
77
78- Ignore "end" events because it might be "error" after it (dex4er) [72bade9]
79- Set username and password on the connection proxy object correctly (UsamaAshraf) [250b1a8]
80- Support more DNS errors (madarche) [2391aa4]
81
82## 6.3.0 2019-07-14
83
84- Added new option to pass a set of httpHeaders to be sent when fetching attachments. See [PR #1034](https://github.com/nodemailer/nodemailer/pull/1034)
85
86## 6.2.1 2019-05-24
87
88- No changes. It is the same as 6.2.0 that was accidentally published as 6.2.1 to npm
89
90## 6.2.0 2019-05-24
91
92- Added new option for addressparser: `flatten`. If true then ignores group names and returns a single list of all addresses
93
94## 6.1.1 2019-04-20
95
96- Fixed regression bug with missing smtp `authMethod` property
97
98## 6.1.0 2019-04-06
99
100- Added new message property `amp` for providing AMP4EMAIL content
101
102## 6.0.0 2019-03-25
103
104- SMTPConnection: use removeListener instead of removeAllListeners (xr0master) [ddc4af15]
105 Using removeListener should fix memory leak with Node.js streams
106
107## 5.1.1 2019-01-09
108
109- Added missing option argument for custom auth
110
111## 5.1.0 2019-01-09
112
113- Official support for custom authentication methods and examples (examples/custom-auth-async.js and examples/custom-auth-cb.js)
114
115## 5.0.1 2019-01-09
116
117- Fixed regression error to support Node versions lower than 6.11
118- Added expiremental custom authentication support
119
120## 5.0.0 2018-12-28
121
122- Start using dns.resolve() instead of dns.lookup() for resolving SMTP hostnames. Might be breaking change on some environments so upgrade with care
123- Show more logs for renewing OAuth2 tokens, previously it was not possible to see what actually failed
124
125## 4.7.0 2018-11-19
126
127- Cleaned up List-\* header generation
128- Fixed 'full' return option for DSN (klaronix) [23b93a3b]
129- Support promises `for mailcomposer.build()`
130
131## 4.6.8 2018-08-15
132
133- Use first IP address from DNS resolution when using a proxy (Limbozz) [d4ca847c]
134- Return raw email from SES transport (gabegorelick) [3aa08967]
135
136## 4.6.7 2018-06-15
137
138- Added option `skipEncoding` to JSONTransport
139
140## 4.6.6 2018-06-10
141
142- Fixes mime encoded-word compatibility issue with invalid clients like Zimbra
143
144## 4.6.5 2018-05-23
145
146- Fixed broken DKIM stream in Node.js v10
147- Updated error messages for SMTP responses to not include a newline
148
149## 4.6.4 2018-03-31
150
151- Readded logo author link to README that was accidentally removed a while ago
152
153## 4.6.3 2018-03-13
154
155- Removed unneeded dependency
156
157## 4.6.2 2018-03-06
158
159- When redirecting URL calls then do not include original POST content
160
161## 4.6.1 2018-03-06
162
163- Fixed Smtp connection freezing, when trying to send after close / quit (twawszczak) [73d3911c]
164
165## 4.6.0 2018-02-22
166
167- Support socks module v2 in addition to v1 [e228bcb2]
168- Fixed invalid promise return value when using createTestAccount [5524e627]
169- Allow using local addresses [8f6fa35f]
170
171## 4.5.0 2018-02-21
172
173- Added new message transport option `normalizeHeaderKey(key)=>normalizedKey` for custom header formatting
174
175## 4.4.2 2018-01-20
176
177- Added sponsors section to README
178- enclose encodeURIComponent in try..catch to handle invalid urls
179
180## 4.4.1 2017-12-08
181
182- Better handling of unexpectedly dropping connections
183
184## 4.4.0 2017-11-10
185
186- 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)
187
188## 4.3.1 2017-10-25
189
190- Fixed a confict with Electron.js where timers do not have unref method
191
192## 4.3.0 2017-10-23
193
194- Added new mail object method `mail.normalize(cb)` that should make creating HTTP API based transports much easier
195
196## 4.2.0 2017-10-13
197
198- Expose streamed messages size and timers in info response
199
200## v4.1.3 2017-10-06
201
202- Allow generating preview links without calling createTestAccount first
203
204## v4.1.2 2017-10-03
205
206- No actual changes. Needed to push updated README to npmjs
207
208## v4.1.1 2017-09-25
209
210- Fixed JSONTransport attachment handling
211
212## v4.1.0 2017-08-28
213
214- Added new methods `createTestAccount` and `getTestMessageUrl` to use autogenerated email accounts from https://Ethereal.email
215
216## v4.0.1 2017-04-13
217
218- Fixed issue with LMTP and STARTTLS
219
220## v4.0.0 2017-04-06
221
222- License changed from EUPLv1.1 to MIT
223
224## v3.1.8 2017-03-21
225
226- Fixed invalid List-\* header generation
227
228## v3.1.7 2017-03-14
229
230- Emit an error if STARTTLS ends with connection being closed
231
232## v3.1.6 2017-03-14
233
234- Expose last server response for smtpConnection
235
236## v3.1.5 2017-03-08
237
238- Fixed SES transport, added missing `response` value
239
240## v3.1.4 2017-02-26
241
242- Fixed DKIM calculation for empty body
243- Ensure linebreak after message content. This fixes DKIM signatures for non-multipart messages where input did not end with a newline
244
245## v3.1.3 2017-02-17
246
247- Fixed missing `transport.verify()` methods for SES transport
248
249## v3.1.2 2017-02-17
250
251- 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
252
253## v3.1.1 2017-02-13
254
255- Fixed missing `transport.on('idle')` and `transport.isIdle()` methods for SES transports
256
257## v3.1.0 2017-02-13
258
259- Added built-in transport for AWS SES. [Docs](http://localhost:1313/transports/ses/)
260- Updated stream transport to allow building JSON strings. [Docs](http://localhost:1313/transports/stream/#json-transport)
261- Added new method _mail.resolveAll_ that fetches all attachments and such to be able to more easily build API-based transports
262
263## v3.0.2 2017-02-04
264
265- Fixed a bug with OAuth2 login where error callback was fired twice if getToken was not available.
266
267## v3.0.1 2017-02-03
268
269- Fixed a bug where Nodemailer threw an exception if `disableFileAccess` option was used
270- Added FLOSS [exception declaration](FLOSS_EXCEPTIONS.md)
271
272## v3.0.0 2017-01-31
273
274- Initial version of Nodemailer 3
275
276This update brings a lot of breaking changes:
277
278- 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.
279- Requires **Node.js v6+**
280- 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
281- **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.
282- **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.
283- **Improved Calendaring**. Provide an ical file to Nodemailer to send out [calendar events](https://nodemailer.com/message/calendar-events/).
284
285And also some non-breaking changes:
286
287- 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
288- **Delivery status notifications** added to Nodemailer
289- 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
290- **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.
291- **Sendmail** transport built-in, no need for external transport plugin
292
293See [Nodemailer.com](https://nodemailer.com/) for full documentation
294
295## 2.7.0 2016-12-08
296
297- Bumped mailcomposer that generates encoded-words differently which might break some tests
298
299## 2.6.0 2016-09-05
300
301- Added new options disableFileAccess and disableUrlAccess
302- Fixed envelope handling where cc/bcc fields were ignored in the envelope object
303
304## 2.4.2 2016-05-25
305
306- Removed shrinkwrap file. Seemed to cause more trouble than help
307
308## 2.4.1 2016-05-12
309
310- Fixed outdated shrinkwrap file
311
312## 2.4.0 2016-05-11
313
314- Bumped mailcomposer module to allow using `false` as attachment filename (suppresses filename usage)
315- Added NTLM authentication support
316
317## 2.3.2 2016-04-11
318
319- Bumped smtp transport modules to get newest smtp-connection that fixes SMTPUTF8 support for internationalized email addresses
320
321## 2.3.1 2016-04-08
322
323- Bumped mailcomposer to have better support for message/822 attachments
324
325## 2.3.0 2016-03-03
326
327- Fixed a bug with attachment filename that contains mixed unicode and dashes
328- Added built-in support for proxies by providing a new SMTP option `proxy` that takes a proxy configuration url as its value
329- Added option `transport` to dynamically load transport plugins
330- Do not require globally installed grunt-cli
331
332## 2.2.1 2016-02-20
333
334- Fixed a bug in SMTP requireTLS option that was broken
335
336## 2.2.0 2016-02-18
337
338- Removed the need to use `clone` dependency
339- Added new method `verify` to check SMTP configuration
340- Direct transport uses STARTTLS by default, fallbacks to plaintext if STARTTLS fails
341- Added new message option `list` for setting List-\* headers
342- Add simple proxy support with `getSocket` method
343- Added new message option `textEncoding`. If `textEncoding` is not set then detect best encoding automatically
344- Added new message option `icalEvent` to embed iCalendar events. Example [here](examples/ical-event.js)
345- 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
346- Added new message option `raw` to use an existing MIME message instead of generating a new one
347
348## 2.1.0 2016-02-01
349
350Republishing 2.1.0-rc.1 as stable. To recap, here's the notable changes between v2.0 and v2.1:
351
352- 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/).
353- Updated smtp-pool to emit 'idle' events in order to handle message queue more effectively
354- Updated custom header handling, works everywhere the same now, no differences between adding custom headers to the message or to an attachment
355
356## 2.1.0-rc.1 2016-01-25
357
358Sneaked in some new features even though it is already rc
359
360- If a SMTP pool is closed while there are still messages in a queue, the message callbacks are invoked with an error
361- In case of SMTP pool the transporter emits 'idle' when there is a free connection slot available
362- Added method `isIdle()` that checks if a pool has still some free connection slots available
363
364## 2.1.0-rc.0 2016-01-20
365
366- Bumped dependency versions
367
368## 2.1.0-beta.3 2016-01-20
369
370- Added support for node-email-templates templating in addition to the built-in renderer
371
372## 2.1.0-beta.2 2016-01-20
373
374- Implemented simple templating feature
375
376## 2.1.0-beta.1 2016-01-20
377
378- Allow using prepared header values that are not folded or encoded by Nodemailer
379
380## 2.1.0-beta.0 2016-01-20
381
382- Use the same header custom structure for message root, attachments and alternatives
383- Ensure that Message-Id exists when accessing message
384- Allow using array values for custom headers (inserts every value in its own row)
385
386## 2.0.0 2016-01-11
387
388- Released rc.2 as stable
389
390## 2.0.0-rc.2 2016-01-04
391
392- Locked dependencies
393
394## 2.0.0-beta.2 2016-01-04
395
396- Updated documentation to reflect changes with SMTP handling
397- Use beta versions for smtp/pool/direct transports
398- Updated logging
399
400## 2.0.0-beta.1 2016-01-03
401
402- Use bunyan compatible logger instead of the emit('log') style
403- Outsourced some reusable methods to nodemailer-shared
404- Support setting direct/smtp/pool with the default configuration
405
406## 2.0.0-beta.0 2015-12-31
407
408- Stream errors are not silently swallowed
409- Do not use format=flowed
410- Use nodemailer-fetch to fetch URL streams
411- jshint replaced by eslint
412
413## v1.11.0 2015-12-28
414
415Allow connection url based SMTP configurations
416
417## v1.10.0 2015-11-13
418
419Added `defaults` argument for `createTransport` to predefine commonn values (eg. `from` address)
420
421## v1.9.0 2015-11-09
422
423Returns a Promise for `sendMail` if callback is not defined
424
425## v1.8.0 2015-10-08
426
427Added priority option (high, normal, low) for setting Importance header
428
429## v1.7.0 2015-10-06
430
431Replaced hyperquest with needle. Fixes issues with compressed data and redirects
432
433## v1.6.0 2015-10-05
434
435Maintenance release. Bumped dependencies to get support for unicode filenames for QQ webmail and to support emoji in filenames
436
437## v1.5.0 2015-09-24
438
439Use mailcomposer instead of built in solution to generate message sources. Bumped libmime gives better quoted-printable handling.
440
441## v1.4.0 2015-06-27
442
443Added new message option `watchHtml` to specify Apple Watch specific HTML part of the message. See [this post](https://litmus.com/blog/how-to-send-hidden-version-email-apple-watch) for details
444
445## v1.3.4 2015-04-25
446
447Maintenance release, bumped buildmail version to get fixed format=flowed handling
448
449## v1.3.3 2015-04-25
450
451Maintenance release, bumped dependencies
452
453## v1.3.2 2015-03-09
454
455Maintenance release, upgraded dependencies. Replaced simplesmtp based tests with smtp-server based ones.
456
457## v1.3.0 2014-09-12
458
459Maintenance release, upgrades buildmail and libmime. Allows using functions as transform plugins and fixes issue with unicode filenames in Gmail.
460
461## v1.2.2 2014-09-05
462
463Proper handling of data uris as attachments. Attachment `path` property can also be defined as a data uri, not just regular url or file path.
464
465## v1.2.1 2014-08-21
466
467Bumped libmime and mailbuild versions to properly handle filenames with spaces (short ascii only filenames with spaces were left unquoted).
468
469## v1.2.0 2014-08-18
470
471Allow using encoded strings as attachments. Added new property `encoding` which defines the encoding used for a `content` string. If encoding is set, the content value is converted to a Buffer value using the defined encoding before usage. Useful for including binary attachemnts in JSON formatted email objects.
472
473## v1.1.2 2014-08-18
474
475Return deprecatin error for v0.x style configuration
476
477## v1.1.1 2014-07-30
478
479Bumped nodemailer-direct-transport dependency. Updated version includes a bugfix for Stream nodes handling. Important only if use direct-transport with Streams (not file paths or urls) as attachment content.
480
481## v1.1.0 2014-07-29
482
483Added new method `resolveContent()` to get the html/text/attachment content as a String or Buffer.
484
485## v1.0.4 2014-07-23
486
487Bugfix release. HTML node was instered twice if the message consisted of a HTML content (but no text content) + at least one attachment with CID + at least one attachment without CID. In this case the HTML node was inserted both to the root level multipart/mixed section and to the multipart/related sub section
488
489## v1.0.3 2014-07-16
490
491Fixed a bug where Nodemailer crashed if the message content type was multipart/related
492
493## v1.0.2 2014-07-16
494
495Upgraded nodemailer-smtp-transport to 0.1.11\. The docs state that for SSL you should use 'secure' option but the underlying smtp-connection module used 'secureConnection' for this purpose. Fixed smpt-connection to match the docs.
496
497## v1.0.1 2014-07-15
498
499Implemented missing #close method that is passed to the underlying transport object. Required by the smtp pool.
500
501## v1.0.0 2014-07-15
502
503Total rewrite. See migration guide here: <http://www.andrisreinman.com/nodemailer-v1-0/#migrationguide>
504
505## v0.7.1 2014-07-09
506
507- Upgraded aws-sdk to 2.0.5
508
509## v0.7.0 2014-06-17
510
511- Bumped version to v0.7.0
512- Fix AWS-SES usage [5b6bc144]
513- Replace current SES with new SES using AWS-SDK (Elanorr) [c79d797a]
514- Updated README.md about Node Email Templates (niftylettuce) [e52bef81]
515
516## v0.6.5 2014-05-15
517
518- Bumped version to v0.6.5
519- Use tildes instead of carets for dependency listing [5296ce41]
520- Allow clients to set a custom identityString (venables) [5373287d]
521- bugfix (adding "-i" to sendmail command line for each new mail) by copying this.args (vrodic) [05a8a9a3]
522- update copyright (gdi2290) [3a6cba3a]
523
524## v0.6.4 2014-05-13
525
526- Bumped version to v0.6.4
527- added npmignore, bumped dependencies [21bddcd9]
528- Add AOL to well-known services (msouce) [da7dd3b7]
529
530## v0.6.3 2014-04-16
531
532- Bumped version to v0.6.3
533- Upgraded simplesmtp dependency [dd367f59]
534
535## v0.6.2 2014-04-09
536
537- Bumped version to v0.6.2
538- Added error option to Stub transport [c423acad]
539- Use SVG npm badge (t3chnoboy) [677117b7]
540- add SendCloud to well known services (haio) [43c358e0]
541- High-res build-passing and NPM module badges (sahat) [9fdc37cd]
542
543## v0.6.1 2014-01-26
544
545- Bumped version to v0.6.1
546- Do not throw on multiple errors from sendmail command [c6e2cd12]
547- Do not require callback for pickup, fixes #238 [93eb3214]
548- Added AWSSecurityToken information to README, fixes #235 [58e921d1]
549- Added Nodemailer logo [06b7d1a8]
550
551## v0.6.0 2013-12-30
552
553- Bumped version to v0.6.0
554- Allow defining custom transport methods [ec5b48ce]
555- Return messageId with responseObject for all built in transport methods [74445cec]
556- Bumped dependency versions for mailcomposer and readable-stream [9a034c34]
557- Changed pickup argument name to 'directory' [01c3ea53]
558- Added support for IIS pickup directory with PICKUP transport (philipproplesch) [36940b59..360a2878]
559- Applied common styles [9e93a409]
560- Updated readme [c78075e7]
561
562## v0.5.15 2013-12-13
563
564- bumped version to v0.5.15
565- Updated README, added global options info for setting uo transports [554bb0e5]
566- Resolve public hostname, if resolveHostname property for a transport object is set to `true` [9023a6e1..4c66b819]
567
568## v0.5.14 2013-12-05
569
570- bumped version to v0.5.14
571- Expose status for direct messages [f0312df6]
572- Allow to skip the X-Mailer header if xMailer value is set to 'false' [f2c20a68]
573
574## v0.5.13 2013-12-03
575
576- bumped version to v0.5.13
577- Use the name property from the transport object to use for the domain part of message-id values (1598eee9)
578
579## v0.5.12 2013-12-02
580
581- bumped version to v0.5.12
582- Expose transport method and transport module version if available [a495106e]
583- Added 'he' module instead of using custom html entity decoding [c197d102]
584- Added xMailer property for transport configuration object to override X-Mailer value [e8733a61]
585- Updated README, added description for 'mail' method [e1f5f3a6]
586
587## v0.5.11 2013-11-28
588
589- bumped version to v0.5.11
590- Updated mailcomposer version. Replaces ent with he [6a45b790e]
591
592## v0.5.10 2013-11-26
593
594- bumped version to v0.5.10
595- added shorthand function mail() for direct transport type [88129bd7]
596- minor tweaks and typo fixes [f797409e..ceac0ca4]
597
598## v0.5.9 2013-11-25
599
600- bumped version to v0.5.9
601- Update for 'direct' handling [77b84e2f]
602- do not require callback to be provided for 'direct' type [ec51c79f]
603
604## v0.5.8 2013-11-22
605
606- bumped version to v0.5.8
607- Added support for 'direct' transport [826f226d..0dbbcbbc]
608
609## v0.5.7 2013-11-18
610
611- bumped version to v0.5.7
612- 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
613
614## v0.5.6 2013-11-15
615
616- bumped version to v0.5.6
617- Upgraded mailcomposer dependency to 0.2.4 [e5ff9c40]
618- Removed noCR option [e810d1b8]
619- Update wellknown.js, added FastMail (k-j-kleist) [cf930f6d]
620
621## v0.5.5 2013-10-30
622
623- bumped version to v0.5.5
624- Updated mailcomposer dependnecy version to 0.2.3
625- Remove legacy code - node v0.4 is not supported anymore anyway
626- Use hostname (autodetected or from the options.name property) for Message-Id instead of "Nodemailer" (helps a bit when messages are identified as spam)
627- Added maxMessages info to README
628
629## v0.5.4 2013-10-29
630
631- bumped version to v0.5.4
632- added "use strict" statements
633- Added DSN info to README
634- add support for QQ enterprise email (coderhaoxin)
635- Add a Bitdeli Badge to README
636- DSN options Passthrought into simplesmtp. (irvinzz)
637
638## v0.5.3 2013-10-03
639
640- bumped version v0.5.3
641- Using a stub transport to prevent sendmail from being called during a test. (jsdevel)
642- closes #78: sendmail transport does not work correctly on Unix machines. (jsdevel)
643- Updated PaaS Support list to include Modulus. (fiveisprime)
644- Translate self closing break tags to newline (kosmasgiannis)
645- fix typos (aeosynth)
646
647## v0.5.2 2013-07-25
648
649- bumped version v0.5.2
650- Merge pull request #177 from MrSwitch/master Fixing Amazon SES, fatal error caused by bad connection