diff --git a/fittrackee/emails/tasks.py b/fittrackee/emails/tasks.py index 3fd3462f..8be6608b 100644 --- a/fittrackee/emails/tasks.py +++ b/fittrackee/emails/tasks.py @@ -51,3 +51,13 @@ def account_confirmation_email(user: Dict, email_data: Dict) -> None: recipient=user['email'], data=email_data, ) + + +@dramatiq.actor(queue_name='fittrackee_emails') +def data_export_email(user: Dict, email_data: Dict) -> None: + email_service.send( + template='data_export_ready', + lang=user['language'], + recipient=user['email'], + data=email_data, + ) diff --git a/fittrackee/emails/templates/data_export_ready/body.html b/fittrackee/emails/templates/data_export_ready/body.html new file mode 100644 index 00000000..af0437be --- /dev/null +++ b/fittrackee/emails/templates/data_export_ready/body.html @@ -0,0 +1,26 @@ +{% extends "layout.html" %} +{% block title %}{{ _('Your archive is ready to be downloaded') }}{% endblock %} +{% block preheader %}{{ _('A download link is available in your account.') }}{% endblock %} +{% block content %}
{{ _('You have requested an export of your account on FitTrackee.') }} {{ _('The archive is now ready to be downloaded from your account.') }}
+
+
|
+
+ {{ _("If you're having trouble with the button above, copy and paste the URL below into your web browser.") }} +{{account_url}} + |
+
+
|
+