Skip to content

Commit

Permalink
Print email content
Browse files Browse the repository at this point in the history
  • Loading branch information
Jocelyn Cabildo authored and Jocelyn Cabildo committed Jan 9, 2025
1 parent 3c46f0d commit 1112cae
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def send_by_request(self, subject, content, _messageattachmentlist, requestjson)

def send(self, subject, content, _messageattachmentlist, emails, from_email = None):
logging.debug("Begin: Send email for request ")

content = content.replace('src=\\\"', 'src="')
content = content.replace('\\\">','">')
msg = MIMEMultipart('related')
Expand Down Expand Up @@ -80,6 +80,7 @@ def send(self, subject, content, _messageattachmentlist, emails, from_email = No
smtpobj.starttls()
smtpobj.ehlo()
#smtpobj.login(MAIL_SRV_USERID, MAIL_SRV_PASSWORD)
print("msgSTR", msg.as_string())
smtpobj.sendmail(msg['From'], msg['To'], msg.as_string())
smtpobj.quit()
logging.debug("End: Send email for request")
Expand Down

0 comments on commit 1112cae

Please sign in to comment.