diff --git a/lms/djangoapps/verify_student/tests/test_views.py b/lms/djangoapps/verify_student/tests/test_views.py index cc52b1afbd..f7fb6870e0 100644 --- a/lms/djangoapps/verify_student/tests/test_views.py +++ b/lms/djangoapps/verify_student/tests/test_views.py @@ -22,6 +22,7 @@ from django.core.urlresolvers import reverse from django.test import TestCase from django.test.client import Client, RequestFactory from django.test.utils import override_settings +from django.utils.translation import ugettext as _ from mock import Mock, patch from nose.plugins.attrib import attr from opaque_keys.edx.keys import CourseKey @@ -1623,8 +1624,11 @@ class TestSubmitPhotosForVerification(TestCase): """ if expect_email: # Verify that photo submission confirmation email was sent + subject = _("{platform_name} ID Verification Photos Received").format( + platform_name=settings.PLATFORM_NAME + ) self.assertEqual(len(mail.outbox), 1) - self.assertEqual("Verification photos received", mail.outbox[0].subject) + self.assertEqual(subject, mail.outbox[0].subject) else: # Verify that photo submission confirmation email was not sent self.assertEqual(len(mail.outbox), 0) diff --git a/lms/djangoapps/verify_student/views.py b/lms/djangoapps/verify_student/views.py index 6a1fe674fe..0c836b7367 100644 --- a/lms/djangoapps/verify_student/views.py +++ b/lms/djangoapps/verify_student/views.py @@ -1065,7 +1065,7 @@ class SubmitPhotosView(View): 'platform_name': configuration_helpers.get_value("PLATFORM_NAME", settings.PLATFORM_NAME) } - subject = _("Verification photos received") + subject = _("{platform_name} ID Verification Photos Received").format(platform_name=context['platform_name']) message = render_to_string('emails/photo_submission_confirmation.txt', context) from_address = configuration_helpers.get_value('email_from_address', settings.DEFAULT_FROM_EMAIL) to_address = user.email diff --git a/lms/templates/emails/photo_submission_confirmation.txt b/lms/templates/emails/photo_submission_confirmation.txt index 028af4f22a..d54c7866df 100644 --- a/lms/templates/emails/photo_submission_confirmation.txt +++ b/lms/templates/emails/photo_submission_confirmation.txt @@ -3,9 +3,9 @@ ${_("Hi {full_name},").format(full_name=full_name)} ${_("Thanks for submitting your photos!")} - -${_("We've received your information and the verification process has begun. You can check the status of the verification process on your dashboard.")} +${_("We've received your information and the ID verification process has begun." +"Check for an email from us in the next few days to confirm whether your verification was successful." +"You can also check the status of the verification process on your dashboard.")} ${_("Thank you,")} - ${_("The {platform_name} team").format(platform_name=platform_name)}