Skip to content

Commit

Permalink
Add SMTP port number to send email
Browse files Browse the repository at this point in the history
  • Loading branch information
dormant-user committed Jan 1, 2022
1 parent 4966fc9 commit 989acdd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion gmailconnector/send_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version_info = (0, 4, 4)
version_info = (0, 4, 5)

0 comments on commit 989acdd

Please sign in to comment.