Private
Public Access
1
0

notification emails

This commit is contained in:
Sander Roosendaal
2018-12-20 16:18:28 +01:00
parent a9f11f4f76
commit 954bd46bce
4 changed files with 70 additions and 1 deletions

View File

@@ -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

View File

@@ -0,0 +1,30 @@
{% extends "emailbase.html" %}
{% block body %}
<p>User <strong>{{ name }}</strong> has created a subscription.</p>
<p>
New plan: "{{ planname }}".
</p>
{% if recurring %}
<p>
The subscription cost is &euro;{{ price }} per year.
The next charge is due on {{ end_of_billing_period }}. on that date.
</p>
{% else %}
<p>
The subscription cost is &euro;{{ price }}. The subscription ends on {{ end_of_billing_period }}
</p>
{% endif %}
<p>
Amount charged: &euro;{{ amount }}
</p>
<p>
Best Regards, the Rowsandall Team
</p>
{% endblock %}

View File

@@ -12,7 +12,7 @@
{% if recurring %}
<p>
The subscription cost is &euro;{{ 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.
</p>

View File

@@ -0,0 +1,30 @@
{% extends "emailbase.html" %}
{% block body %}
<p>User <strong>{{ name }}</strong> has updated his subscription.</p>
<p>
New plan: "{{ planname }}".
</p>
{% if recurring %}
<p>
The subscription cost is &euro;{{ price }} per year.
The next charge is due on {{ end_of_billing_period }}. on that date.
</p>
{% else %}
<p>
The subscription cost is &euro;{{ price }}. The subscription ends on {{ end_of_billing_period }}
</p>
{% endif %}
<p>
Amount charged: &euro;{{ amount }}
</p>
<p>
Best Regards, the Rowsandall Team
</p>
{% endblock %}