English
Learn how to use Postmark for sending emails.
Create a Postmark account
Add environment variables
POSTMARK_TOKEN
export * from './providers/postmark';
Sending Emails
import { postmarkClient } from '@repo/email'; import { ContactTemplate } from '@repo/email/emails/contact'; import { render } from "@react-email/components"; const emailHtml = await render(<ContactTemplate name={name} email={email} message={message} />); await postmarkClient.send({ From: 'sender@acme.com', To: 'recipient@acme.com', Subject: 'The email subject', HtmlBody: emailHtml, });