diff --git a/rowers/tasks.py b/rowers/tasks.py index 1d51ac0f..c354b25c 100644 --- a/rowers/tasks.py +++ b/rowers/tasks.py @@ -823,6 +823,11 @@ def handle_send_email_subscription_update( 'subscription_update_email.html', d, **kwargs) + res = send_template_email(from_email,['info@rowsandall.com'], + 'Subscription Update Notification', + 'subscription_update_notification.html', + d, **kwargs) + return 1 @app.task @@ -854,6 +859,10 @@ def handle_send_email_subscription_create( 'subscription_create_email.html', d, **kwargs) + res = send_template_email(from_email,['info@rowsandall.com'], + 'Subscription Update Notification', + 'subscription_create_notification.html', + d, **kwargs) return 1 @app.task diff --git a/rowers/templates/subscription_create_notification.html b/rowers/templates/subscription_create_notification.html new file mode 100644 index 00000000..37a8c8eb --- /dev/null +++ b/rowers/templates/subscription_create_notification.html @@ -0,0 +1,30 @@ +{% extends "emailbase.html" %} + +{% block body %} +

User {{ name }} has created a subscription.

+ +

+ New plan: "{{ planname }}". +

+ +{% if recurring %} +

+ The subscription cost is €{{ price }} per year. + The next charge is due on {{ end_of_billing_period }}. on that date. +

+{% else %} +

+ The subscription cost is €{{ price }}. The subscription ends on {{ end_of_billing_period }} +

+{% endif %} + +

+ Amount charged: €{{ amount }} +

+ + +

+ Best Regards, the Rowsandall Team +

+{% endblock %} + diff --git a/rowers/templates/subscription_update_email.html b/rowers/templates/subscription_update_email.html index 339c00fc..c50e1b08 100644 --- a/rowers/templates/subscription_update_email.html +++ b/rowers/templates/subscription_update_email.html @@ -12,7 +12,7 @@ {% if recurring %}

The subscription cost is €{{ price }} per year. - Your next charge is due on {{ end_of_billing_period }}. We will charge your {{ paymentmethod }} + Your next charge is due on {{ end_of_billing_period }}. We will charge you automatically on that date.

diff --git a/rowers/templates/subscription_update_notification.html b/rowers/templates/subscription_update_notification.html new file mode 100644 index 00000000..1df49f73 --- /dev/null +++ b/rowers/templates/subscription_update_notification.html @@ -0,0 +1,30 @@ +{% extends "emailbase.html" %} + +{% block body %} +

User {{ name }} has updated his subscription.

+ +

+ New plan: "{{ planname }}". +

+ +{% if recurring %} +

+ The subscription cost is €{{ price }} per year. + The next charge is due on {{ end_of_billing_period }}. on that date. +

+{% else %} +

+ The subscription cost is €{{ price }}. The subscription ends on {{ end_of_billing_period }} +

+{% endif %} + +

+ Amount charged: €{{ amount }} +

+ + +

+ Best Regards, the Rowsandall Team +

+{% endblock %} +