
Prerequisites
AutoSend Account
Sign up for an AutoSend account to get started with sending emails.
Verified Domain
Make sure you have a verified domain added in AutoSend.
API Key
Create a new API key from your AutoSend dashboard.
Bolt Account
Sign up for Bolt to start building apps.
Integration
Prompt Bolt to integrate AutoSend
Copy and paste this prompt into Bolt’s chat:
Bolt will generate the backend code and wire it into your app automatically.
Add your API key
Add your AutoSend API key as an environment variable in your Bolt project settings with the name
AUTOSEND_API_KEY.Get your API key from the API Keys page in your AutoSend dashboard.
Test your integration
Trigger the email flow in your app (for example, submitting a contact form). Check your Email Activity in the AutoSend dashboard to confirm the email was delivered.
Using Email Templates
If you have created email templates in AutoSend, you can send emails using atemplateId instead of inline HTML. Update the prompt to include:
Troubleshooting
Emails are not being sent
Emails are not being sent
Make sure your
AUTOSEND_API_KEY is correctly added in your project’s environment variables. Also verify that your sending domain is verified in AutoSend by checking Settings > Domains in your dashboard.Getting a 401 Unauthorized error
Getting a 401 Unauthorized error
Emails landing in spam
Emails landing in spam
Make sure you have completed domain verification including SPF, DKIM, and DMARC records. We recommend using a subdomain like
mail.yourdomain.com for sending. See our domain setup guide for details.