[NO TESTS] WIP

This commit is contained in:
Reid 'arrdem' McKenzie 2024-12-25 16:59:45 -07:00
commit cd28e3dafe
3 changed files with 150 additions and 3 deletions
projects/tentacles/src

View file

@ -10,8 +10,8 @@ import smtplib
class FastMailSMTP(smtplib.SMTP_SSL):
"""A wrapper for handling SMTP connections to FastMail."""
def __init__(self, username, password):
super().__init__("mail.messagingengine.com", port=465)
def __init__(self, username, password, host="smtp.fastmail.com", port=465):
super().__init__(host=host, port=port)
self._username = username
self._password = password
self._has_logged_in = False