2 questions here:
How do you set your server to display error messages from python scripts? Currently when I get an error with a script it will just say “Internal Server Error” and not give me any details of what the problem is.
I am trying to write a python script that sends an email. I am using smtplib and my code is basically like this:
conn = smtplib.SMTP(‘mail.mydomain.com’)
conn.sendmail(email, ‘firstname.lastname@example.org’, msg)
And it gives me “Internal Server Error” (see question 1). Is there anything in particular I need to set up in order to send mail in this way?