Skip to content

Commit

Permalink
Sending email update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jocelyn Cabildo authored and Jocelyn Cabildo committed Jan 10, 2025
1 parent 217a2c8 commit 9d42c28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def send(self, subject, content, _messageattachmentlist, emails, from_email = No
from_email = MAIL_FROM_ADDRESS

msg['From'] = from_email
msg['To'] = ",".join(emails)
msg['To'] = ",".join(emails) if isinstance(emails, list) else emails.get("email")
msg['Subject'] = subject
formattedContent, embeddedImages = embeddedimagehandler().formatembeddedimage(content)
part = MIMEText(formattedContent, "html")
Expand Down

0 comments on commit 9d42c28

Please sign in to comment.