This sample provides a sample of using Nodemailer to send mail through Moosend / Sitecore Send's SMTP Service.
- Node.js 18 or later
- Moosend or Sitecore Send SMTP Service
If you want to execute local environment, please execute following steps.
- Clone this repository
- Copy .env.local.example to .env.local
execute build command
npm install
npm run build
Please set following params in .env.local
| Param | Description |
|---|---|
| MAIL_USER | SMTP Username |
| MAIL_PASS | SMTP Password |
| MAIL_FROM | Sender Email |
| MAIL_TO | Test Email Address |
With the above settings completed, a test e-mail is sent by executing the following command.
npm run start
2024.02.02 Initial Release