cydrobolt / polr

:aerial_tramway: A modern, powerful, and robust URL shortener
https://polrproject.org
GNU General Public License v2.0
4.97k stars 890 forks source link

Using SendGrid #519

Open hyperdefined opened 5 years ago

hyperdefined commented 5 years ago

Hello!

I would like to use SendGrid for emails.

I have tried following their steps, however, when it sends an email it just gives me "Whoops, something went wrong." I can't seem to find any logs. NGINX doesn't seem to log the error either.

I'm following this guide to use SMTP.

https://sendgrid.com/docs/API_Reference/SMTP_API/integrating_with_the_smtp_api.html

AcornStar commented 5 years ago

I have it working smtp.sendgrid.net port 587 u: apikey p: {your API Key}

You need to make sure the API key has "Mail Send" permission.

It would also be wise to set up the domain you're sending from in sendgrid and therefore add the CNAME records to your DNS so that the emails get sent out.