
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.
Replit Account
Sign up for Replit to start building.
Integration
Add your API key as a secret
- In your Replit project, open the Secrets tab (lock icon in the sidebar)
- Add a new secret with the key
AUTOSEND_API_KEY - Paste your AutoSend API key as the value
Get your API key from the API Keys page in your AutoSend dashboard.
Prompt Replit Agent to integrate AutoSend
Copy and paste this prompt into Replit’s AI chat:
Replit Agent will generate the backend code and connect it to your app.
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 Replit Secrets. 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.