Your contact form is now configured to use Resend for sending emails. Follow these steps to complete the setup:
- Go to Resend.com and sign up for a free account
- Verify your email address
- Go to the API Keys page
- Click "Create API Key"
- Give it a name (e.g., "Portfolio Contact Form")
- Copy the API key (it starts with
re_)
- In your project root directory (
Record_Acc-main), create a new file named.env.local - Add the following line to the file:
RESEND_API_KEY=re_your_api_key_here
Replace re_your_api_key_here with the actual API key you copied from Resend.
- Stop your current dev server (Ctrl+C in the terminal)
- Run
npm run devagain - Your contact form should now work! 馃帀
- Go to your contact form
- Fill in the name, email, and message fields
- Click "Send Message"
- You should receive an email at
jayadeepgowda24@gmail.com
- Free Tier: Resend offers 3,000 emails/month for free (more than enough for a portfolio)
- Test Email: Initially, emails will come from
onboarding@resend.dev - Custom Domain (Optional): You can add your own domain in Resend settings to send from your own email address (e.g.,
contact@yourdomain.com) - Security: Never commit your
.env.localfile to Git (it's already in.gitignore)
If emails aren't sending:
- Check that
.env.localexists in the project root - Verify the API key is correct (no extra spaces)
- Check the browser console and terminal for error messages
- Make sure you restarted the dev server after creating
.env.local
When deploying to Vercel, Netlify, or other platforms:
- Add
RESEND_API_KEYas an environment variable in your hosting platform's settings - Redeploy your application
Need help? Check the Resend Documentation