feat(examples): add Brevo example

Merged
MM
2mo ago
+78-0

Adds an example showing how to send a react-email template through Brevo's transactional API, using the official @getbrevo/brevo SDK (v6, the new BrevoClient interface).

Follows the structure of the existing plunk example: render the template, pass the HTML to sendTransacEmail. Verified the call shape against the v6.0.2 types.

Happy to add other providers if useful.


Summary by cubic

Adds a working Brevo example that renders a react-email template and sends it via Brevo’s transactional API using the v6 BrevoClient from @getbrevo/brevo. This gives users a minimal, copy-pastable setup to test sending HTML emails with Brevo.

  • New Features
    • New example at examples/brevo with a simple Email component and index.tsx that calls transactionalEmails.sendTransacEmail.
    • Uses BREVO_API_KEY from env and ESM build via tsdown targeting Node 20.
    • Adds pinned deps: @getbrevo/brevo@6.0.2, react-email@6.0.3, react, react-dom.