Forums

Mailgun server error 500? when sending an email to gmail

Hi, i wonder if anyone can help or advise? i am developing a web application using Django, all works ok.

my contact page and email also worked ok using 127.0.0.1:8000 - email sent via mailgun using pythonanywhere domain to gmail email..

but my pythonanwhere site - after pressing the submit button - i get server error 500??

I'm using SMTP and a gmail email.

any ideas?

Thanks in advance

Check your error logs for details in the tracebacks there to start debugging.

connection refused = error 111

(using sandbox domain (mailgun) - email works good if use on laptop 127.0.0.1:8000) using SMTP

not on on pythonanywhere?

apparently pythonanywhere only works with mailgun if you buy a domain DNS which can be verified by mailgun?

??

Depending on how mailgun is doing that verification. Probably by DNS, so it's unrelated to PythonAnywhere.