-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chapter 7 -Listing 63: Email without from-adress and subject #393
Comments
I don't understand why the from address and subject are missing for you, since they are set in the code. |
If no one else had this problem I think the problem sits in front of my keyboard. |
I'm having trouble running your code and was hoping you could help me out. I entered the code in terminal 1: In terminal 2 I entered the code: and successfully triggered the SQLAlchemy error, but instead of receiving the error log email in Terminal 1, it prints a stack trace of all the errors in Terminal 1, what's going on here? Anyway, I will continue to learn from this great tutorial of yours. |
With listing 63, there is no from-adress and no subject in the sended email. Maybe there is a change in SMTPHandler.
My provider works with SSL/TLS so I have to change your listing and work with smtplib.SMTP_SSL. In this case I also changed the formatting of the mail-handler and use email.message for the message. After that all works ok.
I've attached my listing, so you can have a look at my solution.
Sorry for my poor english.
Michael
Listing 63 init .txt
The text was updated successfully, but these errors were encountered: