online-judge icon indicating copy to clipboard operation
online-judge copied to clipboard

Sendgrid can't send email after registration

Open gnius-edu opened this issue 4 years ago • 3 comments

It is a solution to the above problem. If you are getting an error that sendgrid can't send email to the user then the following will help you -

  1. Don't use sendgrid-django instead use anymail Link to installation is mentioned here

  2. After adding the required configurations mentioned above, also add this one DEFAULT_FROM_EMAIL = "[email protected]". This will solve your all problems. Solution - Solution

  3. Better to use sendgrid than mailgun or gmail because I found some issue with mailgun api. Always getting forbidden 401 unauthorized. If anyone can solve this please help.

gnius-edu avatar Jun 08 '21 06:06 gnius-edu

Can you clarify what the issue you're facing is and how DMOJ is involved. It seems like you're just having issues with sengrid or mailgun.

fluix-dev avatar Jun 08 '21 16:06 fluix-dev

I will post screen shots as a proof.

  1. To send email from sendgrid backend we need a from field which is not mentioned in the dmoj. It is taking webmaster@localhost as a default and I guess thats none of my problem.

Plus I have added this as a support material for those who may face same problem.

sapsa07 avatar Jun 08 '21 16:06 sapsa07

So is your request that the sample is changed to point to a different package?

fluix-dev avatar Jun 08 '21 16:06 fluix-dev