AI Builder Guides

v0

Add email sending with MailBlastr to a v0 project by asking the chat to wire it up with your API key.

v0 by Vercel is a platform for building sites, tools, apps, and projects via chat. You can add MailBlastr to a v0 project by asking the chat to add email sending and pointing it at your MailBlastr API key.

1. Add your MailBlastr API key

Create a MailBlastr API key in the dashboard, then ask v0 to add email sending and store the key as an environment variable (e.g. MAILBLASTR_API_KEY). In Node.js/TypeScript projects v0 can install the official mailblastr SDK (npm install mailblastr) and call mb.emails.send(...). In other languages or runtimes, sends are plain HTTP POSTs to https://api.mailblastr.com/emails.

Do not share your API key or expose it in the browser or other client-side code. Keep the send on the server side and read the key from an environment variable.

Example prompt

Add email sending with MailBlastr. When the contact form is submitted, send an
email by POSTing to https://api.mailblastr.com/emails with an Authorization:
Bearer header using MAILBLASTR_API_KEY. Read the key from an environment variable.

2. Add a custom domain

By default you can only send email to your own address. To send to other recipients, add and verify a custom domain, then update the from field in the send code to use an address on that domain (or ask the chat to update it).