You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
If no one else had this problem I think the problem sits in front of my keyboard.
Maybe it happens while I tried to implement SSL/TLS.
However, I continue to read your outstanding book.
Thank you for your patience.
I'm having trouble running your code and was hoping you could help me out.
I entered the code in terminal 1:
aiosmtpd -n -c aiosmtpd.handlers.Debugging -l localhost:8025
In terminal 2 I entered the code:
set MAIL_SERVER=localhost
set MAIL_PORT=8025
flask run
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.
Thanks for your patience.
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: