-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #453 from GSA/bugfix/issue-232/email-certificate-l…
…anguage-update Updated certificate email text to reference GSA
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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> | ||
''') | ||
|
@@ -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") | ||
|