Releases: Kaweesha-mr/mail-service-template
Releases · Kaweesha-mr/mail-service-template
v1.1.0
Mail Service v1.1.0 Release Notes
New Features and Improvements
- Email Sending Speed Optimization:
- Reduced email sending time from 3 seconds to 1.5 seconds, ensuring faster email delivery and improved performance.
- Handlebars Template Integration:
- Introduced Handlebars support for dynamic and personalized email content.
- The
sendGreetingEmail
function now uses Handlebars templates, allowing customization with variables likename
andcompanyLogo
.
- OAuth2 Authentication:
- Implemented OAuth2 for secure Gmail email sending, ensuring modern authentication standards are met.
- Connection Pooling:
- Enabled connection pooling in Nodemailer, improving performance by reducing connection setup time.
Bug Fixes
- Fixed ESM Module Error:
- Resolved the
ERR_REQUIRE_ESM
error by using dynamic imports, ensuring compatibility with the latest Node.js versions.
- Resolved the
Important
- Ensure you have a
greetings.hbs
template in yourtemplates
directory to take full advantage of the new templating feature.
For more details, check the full changelog.
Initial release of emailer service
Features
- Added email sending functionality using Nodemailer.
- Supports plain text emails and emails with attachments.
- Greeting email functionality with customizable Handlebars templates.
Configuration
- Added
.env
configuration options for SMTP settings and OAuth credentials.
Bug Fixes
- Fixed email template rendering issues.
Setup
- Ensure to configure your
.env
file with correct values (SMTP, OAuth, etc.).