The 163 mailbox uses the SSL protocol by default. Change MAIL_USE_SSL in the previous app.config to True. MAIL_USE_TLS does not need to be set. Just change the port to 465. If it doesn't work, post the error message.
Pay attention to the layout, I have adjusted it for you.
When asking questions, it is best to post the console information. Regardless of whether an error is reported or not, please explain if there is no output content.
Since no valuable debugging information was provided, I can only ask how your email account and password were set up and whether they are correct.
The 163 mailbox uses the SSL protocol by default. Change MAIL_USE_SSL in the previous app.config to True. MAIL_USE_TLS does not need to be set. Just change the port to 465. If it doesn't work, post the error message.
Pay attention to the layout, I have adjusted it for you.
When asking questions, it is best to post the console information. Regardless of whether an error is reported or not, please explain if there is no output content.
Since no valuable debugging information was provided, I can only ask how your email account and password were set up and whether they are correct.