Added mail debug
This commit is contained in:
parent
cc085b0acd
commit
9935e30d83
@ -23,6 +23,10 @@ class MailService:
|
||||
def send(self, to: str, subject: str, body: str):
|
||||
logger.debug(f"Preparing to send email to: {to}, subject: {subject}")
|
||||
|
||||
logger.debug(
|
||||
f"Server {self._server}, Port: {self._port}, User: {self._user}, pw {self._password}, From: {self._from}"
|
||||
)
|
||||
|
||||
msg = MIMEMultipart()
|
||||
msg["From"] = self._from
|
||||
msg["To"] = to
|
||||
|
Loading…
Reference in New Issue
Block a user