Merge pull request #173 from alphagov/email-wrapper

Add HTML email
This commit is contained in:
Chris Hill-Scott
2016-03-18 15:42:32 +00:00
4 changed files with 27 additions and 9 deletions

View File

@@ -267,7 +267,8 @@ def send_email(service_id, notification_id, subject, from_address, encrypted_not
from_address,
notification['to'],
subject,
template.replaced
body=template.replaced,
html_body=template.as_HTML_email,
)
update_notification_reference_by_id(notification_id, reference)
except AwsSesClientException as e: