normalizeHeaderKey(key)=>normalizedKeyfor custom header formatting
mail.normalize(cb)that should make creating HTTP API based transports much easier
getTestMessageUrlto use autogenerated email accounts from https://Ethereal.email
transport.verify()methods for SES transport
transport.isIdle()methods for SES transports
disableFileAccessoption was used
This update brings a lot of breaking changes:
And also some non-breaking changes:
See Nodemailer.com for full documentation
falseas attachment filename (suppresses filename usage)
proxythat takes a proxy configuration url as its value
transportto dynamically load transport plugins
verifyto check SMTP configuration
listfor setting List-* headers
textEncodingis not set then detect best encoding automatically
icalEventto embed iCalendar events. Example here
rawto 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
rawto use an existing MIME message instead of generating a new one
Republishing 2.1.0-rc.1 as stable. To recap, here's the notable changes between v2.0 and v2.1:
Sneaked in some new features even though it is already rc
isIdle()that checks if a pool has still some free connection slots available
Allow connection url based SMTP configurations
defaults argument for
createTransport to predefine commonn values (eg.
Returns a Promise for
sendMail if callback is not defined
Added priority option (high, normal, low) for setting Importance header
Replaced hyperquest with needle. Fixes issues with compressed data and redirects
Maintenance release. Bumped dependencies to get support for unicode filenames for QQ webmail and to support emoji in filenames
Use mailcomposer instead of built in solution to generate message sources. Bumped libmime gives better quoted-printable handling.
Added new message option
watchHtml to specify Apple Watch specific HTML part of the message. See this post for details
Maintenance release, bumped buildmail version to get fixed format=flowed handling
Maintenance release, bumped dependencies
Maintenance release, upgraded dependencies. Replaced simplesmtp based tests with smtp-server based ones.
Maintenance release, upgrades buildmail and libmime. Allows using functions as transform plugins and fixes issue with unicode filenames in Gmail.
Proper handling of data uris as attachments. Attachment
path property can also be defined as a data uri, not just regular url or file path.
Bumped libmime and mailbuild versions to properly handle filenames with spaces (short ascii only filenames with spaces were left unquoted).
Allow 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.
Return deprecatin error for v0.x style configuration
Bumped 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.
Added new method
resolveContent() to get the html/text/attachment content as a String or Buffer.
Bugfix 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
Fixed a bug where Nodemailer crashed if the message content type was multipart/related
Upgraded 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.
Implemented missing #close method that is passed to the underlying transport object. Required by the smtp pool.
Total rewrite. See migration guide here: http://www.andrisreinman.com/nodemailer-v1-0/#migrationguide