Skip to content
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

Fix smtp connection #6

Merged
merged 2 commits into from
Mar 8, 2024
Merged

Fix smtp connection #6

merged 2 commits into from
Mar 8, 2024

Conversation

jguo144
Copy link
Collaborator

@jguo144 jguo144 commented Mar 7, 2024

Description

This PR fixes the error SMTPServerDisconnected: Connection unexpectedly closed.
Changes to ssl in python 3.7 broke the use of smtplib.SMTP().connect(smtp_server).
Instead use smtplib.SMTP(smtp_server) to create an SMTP instance.

@jguo144 jguo144 force-pushed the jguo144/2024-03-07/fix-mailer branch from 6bf5749 to 27827bb Compare March 7, 2024 21:32
Copy link

@peterVorman peterVorman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@peterVorman peterVorman merged commit 70d3977 into master Mar 8, 2024
2 checks passed
@jguo144 jguo144 deleted the jguo144/2024-03-07/fix-mailer branch March 8, 2024 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants