Skip to content

Commit

Permalink
Merge pull request #453 from GSA/bugfix/issue-232/email-certificate-l…
Browse files Browse the repository at this point in the history
…anguage-update

Updated certificate email text to reference GSA
  • Loading branch information
hollosyt authored Nov 28, 2023
2 parents cba114f + 2a6f917 commit 7b3584c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions training/services/quiz.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
<p>
Congratulations!
</p>
<p>You've successfully passed the quiz for the $course_name.</p>
<p>You've successfully passed the GSA SmartPay® $course_name quiz.</p>
<p>Your certificate is attached below.</p>
<p>
If you have any questions or need further assistance,
email us at [email protected].
If you did not submit this request, you may be receiving this message in error. Please disregard this email. If you have any questions or need further
assistance, email us at [email protected].
</p>
<p>Thank you.</p>
''')
Expand Down Expand Up @@ -141,7 +141,7 @@ def email_certificate(self, user_name: str, course_name: str, to_email: str, cer
body = CERTIFICATE_EMAIL_TEMPLATE.substitute({"name": user_name, "course_name": course_name})
message = EmailMessage()
message.set_content(body, subtype="html")
message["Subject"] = "Certificate - " + course_name
message["Subject"] = "Certificate - GSA SmartPay " + course_name
message["From"] = f"{settings.EMAIL_FROM_NAME} <{settings.EMAIL_FROM}>"
message["To"] = to_email
message.add_attachment(certificate, maintype="application", subtype="pdf", filename="SmartPayTraining.pdf")
Expand Down

0 comments on commit 7b3584c

Please sign in to comment.