A production-ready Node backend with an Express SMTP mail server configurable for use with contact forms, subscriptions, etc.
ATTENTION: VERSION 2.0.0 HAS BEEN RELEASED. THIS IS A MAJOR SERMVER VERSIONING UPDATE AKA INCLUDES BREAKING CHANGES. PLEASE BE AWARE AND DON'T HESITATE TO REACH OUT IF YOU ARE EXPERIENCING NEGATIVE SIDE-EFFECTS FROM THIS LATEST UPDATE.
Refactored and consolidate major sections of the codebase, which included changes to the file structure and the newly introduced /routes/mailrouter
endpoint which should be called on the Express server for all SMTP related GET & POST requests.
Corrected a timing misalignment which caused the rate-limiter to engage too aggressively, sometimes resulting in legitimate access attempts being blocked.
Provided support for AJAX (XHR) and JSON parsing both on the primary default for handling general requests ("/"), as well as the new exclusive mailrouter endpoint.
Refined tests to be more relevant and removing extraneous fluff in .travis.yml
which created build warnings.
Extended full support for linting with eslint
and formatting with prettier. Default custom flavor is mj-pa
, but feel free to sub in your own version or delete completely to revert to the out-of-box settings.
Upgraded supporting package versions to implement fixes for several moderate and major security flaws which were recently patched across several affected npm dependencies.
That is all.
Added support for Ethereal. Instead of configuring a real email account for sending mail during development, you can create an Ethereal test account to ensure your API routes are processing date correctly.You can also automatically request an Ethereal test account directly from your application. This allows for simplified testing, especially in larger projects.Additionally, if you so desire, you can configure Ethereal as an outbound mail server and send your transactional or marketing emails through their SMTP service. You will still get the same experience you would expect from any other mail service provider.
That is all for now :)
this marks the initial release of express-smtp-mailer
the code has been thoroughly tested and is ready for others to use