
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.
v0 Account
Sign up for v0 to start building.
Integration
Prompt v0 to integrate AutoSend
Copy and paste this prompt into v0’s chat:
v0 will generate the API route and any UI components needed for your email flow.
Add your API key
When you deploy your v0 project to Vercel, add
AUTOSEND_API_KEY as an environment variable in your Vercel project settings.For local development, add it to your .env.local file:.env.local
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 set in your Vercel environment variables (for production)
or .env.local (for local development). Also verify that your sending domain is verified in
AutoSend.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.