AI Builder Guides

Replit

Add email sending with MailBlastr to a Replit project with an API key and verified from address.

Replit is a platform for building sites and apps with AI. You can add MailBlastr to a Replit project by asking the chat to add email sending with MailBlastr.

Example prompt

When someone fills out the contact form, send an email using MailBlastr.

1. 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 use an address on that domain as the from address in the next step.

2. Add your MailBlastr API key and from address

Create a MailBlastr API key in the dashboard and store it as a secret (e.g. MAILBLASTR_API_KEY). The from address is the verified address your email is sent from — use the custom domain you added in step 1 (e.g. hello@example.com). In Node.js Repls, Replit can install the official mailblastr SDK (npm install mailblastr) and call mb.emails.send(...). In other languages, the generated code calls the MailBlastr API over plain HTTP.

Do not share your API key or expose it in the browser or other client-side code. Store it as a Replit secret and read it server-side.