Custom provider for mails
You can also use any other provider you like, by creating a new file in the provider
folder and implementing the
SendEmailHandler
interface:
import { config } from '../config';
import { SendEmailHandler } from '../types';
const { from } = config;
export const send: SendEmailHandler = async ({ to, subject, text, html }) => {
// handle your custom email sending logic here
};
Then, make sure to activate your custom provider in packages/mail/provider/index.ts
:
export * from './my-custom-provider';