notification emails
This commit is contained in:
@@ -823,6 +823,11 @@ def handle_send_email_subscription_update(
|
|||||||
'subscription_update_email.html',
|
'subscription_update_email.html',
|
||||||
d, **kwargs)
|
d, **kwargs)
|
||||||
|
|
||||||
|
res = send_template_email(from_email,['info@rowsandall.com'],
|
||||||
|
'Subscription Update Notification',
|
||||||
|
'subscription_update_notification.html',
|
||||||
|
d, **kwargs)
|
||||||
|
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
@app.task
|
@app.task
|
||||||
@@ -854,6 +859,10 @@ def handle_send_email_subscription_create(
|
|||||||
'subscription_create_email.html',
|
'subscription_create_email.html',
|
||||||
d, **kwargs)
|
d, **kwargs)
|
||||||
|
|
||||||
|
res = send_template_email(from_email,['info@rowsandall.com'],
|
||||||
|
'Subscription Update Notification',
|
||||||
|
'subscription_create_notification.html',
|
||||||
|
d, **kwargs)
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
@app.task
|
@app.task
|
||||||
|
|||||||
30
rowers/templates/subscription_create_notification.html
Normal file
30
rowers/templates/subscription_create_notification.html
Normal 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 €{{ price }} per year.
|
||||||
|
The next charge is due on {{ end_of_billing_period }}. on that date.
|
||||||
|
</p>
|
||||||
|
{% else %}
|
||||||
|
<p>
|
||||||
|
The subscription cost is €{{ price }}. The subscription ends on {{ end_of_billing_period }}
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Amount charged: €{{ amount }}
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Best Regards, the Rowsandall Team
|
||||||
|
</p>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
{% if recurring %}
|
{% if recurring %}
|
||||||
<p>
|
<p>
|
||||||
The subscription cost is €{{ price }} per year.
|
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.
|
on that date.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|||||||
30
rowers/templates/subscription_update_notification.html
Normal file
30
rowers/templates/subscription_update_notification.html
Normal 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 €{{ price }} per year.
|
||||||
|
The next charge is due on {{ end_of_billing_period }}. on that date.
|
||||||
|
</p>
|
||||||
|
{% else %}
|
||||||
|
<p>
|
||||||
|
The subscription cost is €{{ price }}. The subscription ends on {{ end_of_billing_period }}
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Amount charged: €{{ amount }}
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Best Regards, the Rowsandall Team
|
||||||
|
</p>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
Reference in New Issue
Block a user