Skip to main content
Docs/Docs
DocsBring your own email provider
Pro

Bring your own email provider

Send transactional email from your own Resend, Postmark, or SendGrid account.

What it does

Order confirmations, receipts, and other transactional emails go out automatically. By default GenMB handles delivery for you. If you would rather send from your own email account - so messages come from your domain and count toward your own sending reputation - you can connect your own provider with Bring Your Own Key (BYOK): you supply the key from your provider, and GenMB sends through it.

How to set it up

Ask in chat - for example, "send order emails through my Resend account." GenMB walks you through connecting your provider and which sender address to use. You will need an API key from your provider:

  • Resend - create a key under API Keys in the Resend dashboard (resend.com).
  • Postmark - copy your Server Token from the API Tokens tab of your Postmark server (postmarkapp.com).
  • SendGrid - create a key under Settings -> API Keys in the SendGrid dashboard (sendgrid.com).
If a send through your own provider ever fails, GenMB falls back to its built-in email delivery so you never lose a transactional message.

For developers

Send a transactional email from your app code:

await window.genmb.email.send({
  to: 'buyer@example.com',
  subject: 'Your order #12345',
  html: '<p>Thanks for your purchase.</p>',
});
// { sent: true, transport: 'resend' }
Your provider key is stored securely on the server and never round-trips to the browser.

FAQs

Which providers are supported?
Resend, Postmark, and SendGrid. If you have not set up your own provider, GenMB still sends your transactional email through its built-in delivery so nothing is lost.
What happens if my provider has a problem?
If a send through your own provider fails, GenMB automatically falls back to its built-in email delivery, so the message still goes out. Your account key is kept securely and is never exposed to the browser or to shoppers.