From 1112caed4bef68928b8a627142f1fc4e9f89522e Mon Sep 17 00:00:00 2001 From: Jocelyn Cabildo Date: Wed, 8 Jan 2025 18:09:06 -0800 Subject: [PATCH] Print email content --- .../request_api/services/email/senderservice.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/request-management-api/request_api/services/email/senderservice.py b/request-management-api/request_api/services/email/senderservice.py index baae68ac4..941bb7cd6 100644 --- a/request-management-api/request_api/services/email/senderservice.py +++ b/request-management-api/request_api/services/email/senderservice.py @@ -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') @@ -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")