Skip to content
Snippets Groups Projects
Verified Commit f94cc0ad authored by nd's avatar nd
Browse files

fix template rendering

parent 1029b050
Branches main
Tags v1.1.1
No related merge requests found
Pipeline #12108 passed
......@@ -47,7 +47,7 @@ URL to message: {{ baseurl }}/{{ room_type }}/{{ room_name }}?msg={{ report.mess
msg['From'] = os.environ['SMTP_FROM']
msg['To'] = os.environ['REPORT_MAIL']
msg['Subject'] = f"RocketChat report from {reporter[0]['username'] or 'Unknown'}"
msg.set_content(template.render(report=report, reporter=reporter, baseurl=os.environ['BASEURL']))
msg.set_content(template.render(report=report, reporter=reporter, baseurl=os.environ['BASEURL'], room_type=room_type, room_name=room_name))
smtp = smtplib.SMTP(host=os.environ['SMTP_HOST'], port=int(os.environ['SMTP_PORT']))
smtp.starttls(context=ssl.create_default_context())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment