From cc04e5ac1a5b8adf30975e1f80bb528874d19e81 Mon Sep 17 00:00:00 2001 From: Melissa Autumn Date: Tue, 3 Sep 2024 13:40:18 -0700 Subject: [PATCH] Fix send_message --- backend/src/appointment/controller/mailer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/appointment/controller/mailer.py b/backend/src/appointment/controller/mailer.py index 74e95388f..24c199192 100644 --- a/backend/src/appointment/controller/mailer.py +++ b/backend/src/appointment/controller/mailer.py @@ -131,7 +131,7 @@ def send(self): else: server = smtplib.SMTP(SMTP_URL, SMTP_PORT) # now send email - server.send_message(self.build()) + server.send_message(self.build(), to_addrs=self.to) except Exception as e: # sending email was not possible logging.error('[mailer.send] An error occurred on sending email: ' + str(e))