From 989acdddf70d3f1e1ca6877aebb5781330748f96 Mon Sep 17 00:00:00 2001 From: thevickypedia Date: Sat, 1 Jan 2022 16:12:59 -0500 Subject: [PATCH] Add SMTP port number to send email --- CHANGELOG | 4 ++++ gmailconnector/send_email.py | 2 +- version.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 2e3fa12..a8073b2 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,10 @@ Change Log ========== +0.4.4 (1/1/2021) +------------------ +- Add SMTP port number to send email + 0.4.4 (12/30/2021) ------------------ - Add more information to payload restriction diff --git a/gmailconnector/send_email.py b/gmailconnector/send_email.py index 5804906..6979d56 100644 --- a/gmailconnector/send_email.py +++ b/gmailconnector/send_email.py @@ -36,7 +36,7 @@ def __init__(self, gmail_user: str, gmail_pass: str, recipient: str or list, self.sender = f"GmailConnector <{gmail_user}>" self.attachment = attachment self.file_not_available = None - self.server = SMTP('smtp.gmail.com') + self.server = SMTP(host='smtp.gmail.com', port=587) def __del__(self): """Destructor has been called to close the TLS connection and logout.""" diff --git a/version.py b/version.py index cc6443a..60a9e8d 100644 --- a/version.py +++ b/version.py @@ -1 +1 @@ -version_info = (0, 4, 4) +version_info = (0, 4, 5)