Skip to content

Commit

Permalink
Fix send_message
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaAutumn committed Sep 3, 2024
1 parent 00e1656 commit cc04e5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/appointment/controller/mailer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit cc04e5a

Please sign in to comment.