Hi, I wonder if anyone tried to set up a contact form via SendGrid. This is the recommended method as per https://vercel.com/guides/sending-emails-from-an-application-on-vercel. However, I can't make it work. I keep getting Unauthorized. The code works perfectly from my localhost, but not from deployed application. I thought the problem could be with SendGrid's IP access management, but Vercel doesn't provide static IP address for hobby accounts so that I could whitelist those. However, AI support on Vercel website told me, that this shouldn't be an issue for the functionality to work.
On Vercel side:
- I have correctly set up the environmental variable - its available on all environments (SENDGRID_API_KEY).
On SendGrid side:
- API key has full access
- Domains are verified
I also tried to enable CORS via vercel.json, but same result - I always get "Unauthorized".
Anybody came across similar issue? Anybody integrated SendGrid successfully?
Thank you