I am using supabase as my database and for authentication for my webapp. I would like to send users a welcome email once they sign up. I am having issues with calling the sendgrid api from weweb but I am able to call the same API from postman.
My current setup, I am using a rest API to post a message to sendgrid’s API :
curl --request POST \
--url https://api.sendgrid.com/v3/mail/send \
--header "Authorization: Bearer $SENDGRID_API_KEY" \
--header 'Content-Type: application/json' \
--data '{"personalizations": [{"to": [{"email": "test@example.com"}]}],"from": {"email": "test@example.com"},"subject": "Sending with SendGrid is Fun","content": [{"type": "text/plain", "value": "and easy to do anywhere, even with cURL"}]}'
Any recommendations on how to implement email functionality from Weweb? I open to other Email API providers that work well with WeWeb.
I don’t know supabase, but I’d guess the workflow should be similar to Xano. Have the API call done through Supabase and not WeWeb.
I use Postmark as i found it does a better job not getting stuck in spam filters. Sendgrid has an issue with Yahoo emails. Only downside of Postmark is they don’t have a visual editor for HTML email templates. For transactional emails it’s fine for me.
You shouldn’t be calling an email api from WeWeb at all, but rather use a servers as a middle layer. Unless you wanna get abused badly. Use the http extension in Supabase or an Edge Function.
I use Brevo which is actually the previous SendGrid or Sendblue . I just use a regular API from Weweb or from XANO in my case. I use the XANO http request, and just like Broberto said, you can do the same in Supabase.
If you setup an STMP, AWS SES is quite cheap, also ElasticEmail is not bad. These are my top 3. I used to have mailsender, but by some reason they keep blocking some of my sites saying it was not approved (Although all legit businesses lol), so I gave up on them, Brevo offers a good free threshold.
Thank you for sharing. I looked into resend but couldn’t find a no code option to generate the email content. Any suggestions on how I could create email body using no code for resend?