Files
myeasycms-v2/packages/mailers
giancarlo 041efb89fb Remove team account related services and actions
Removed services and actions related to team account deletion as well as updated paths within other dependent files, better reflecting their new locations. Also, added a new service titled 'AccountBillingService' for handling billing-related operations and restructured the form layout and handled translation in 'team-account-danger-zone' component.
2024-03-28 15:27:56 +08:00
..
2024-03-27 21:06:34 +08:00
2024-03-24 02:23:22 +08:00

Mailers - @kit/mailers

This package is responsible for sending emails using a unified interface across the app.

The default mailer uses the nodemailer package to send emails. You can create custom mailers by extending the Mailer class.

Make sure the app installs the @kit/mailers package before using it.

{
    "name": "my-app",
    "dependencies": {
        "@kit/mailers": "*"
    }
}

Usage

Send an email

import { Mailer } from '@kit/mailers';

const mailer = new Mailer();

mailer.send({
    to: '',
    from: '',
    subject: 'Hello',
    text: 'Hello, World!'
});