Documentation
Mailing

Custom provider

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 config.ts:

export const config = {
  // ...
  mailing: {
    provider: "custom",
  },
};

On this page

No Headings