Skip to content

Commit

Permalink
updating email copy for recurring donation
Browse files Browse the repository at this point in the history
  • Loading branch information
monaddle committed Nov 14, 2014
1 parent f421aac commit 406b808
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 3 deletions.
29 changes: 29 additions & 0 deletions backend/email/thank-you-recurring.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<html>
<body>
<p>Dear {name},</p>

<p>Thank you for your donation to MAYDAY.US. We are grateful for the support to make it possible for us to win back our democracy.</p>

<p>This is just the beginning. But if we can succeed as we have so far, then by 2016, we will have taken the first critical step to getting our democracy back.</p>

<p>This email serves as your receipt for setting up your monthly donation of: {total}</p>

<p> To change or cancel your future donation, please email us at info@mayday.us, letting us know the email address used to set up your monthly donation.
<p>Thank you again,</p>

<p>
--MAYDAY.US<br/>
</p>

<p>P.S. Here's another really simple way to help -- just share the suggested text below with your Facebook and Twitter following:</p>

<p>I just supported #MAYDAYUS, a crowdfunded, kickstarted campaign to reclaim our democracy. You can check it out here: <a href="http://mayday.us">http://mayday.us</a>.</p>

<p>
----------------------<br/>
Paid for by Mayday PAC<br/>
Not authorized by any candidate or candidate’s committee<br/>
<a href="http://mayday.us">www.mayday.us</a>
</p>
</body>
</html>
22 changes: 22 additions & 0 deletions backend/email/thank-you-recurring.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Dear {name}:

Thank you for your donation to MAYDAY.US. We are grateful for the support to make it possible for us to win back our democracy.

This is just the beginning. But if we can succeed as we have so far, then by 2016, we will have taken the first critical step to getting our democracy back.

This email serves as your receipt for setting up your monthly donation of: {total}

To change or cancel your future donation, please email us at info@mayday.us, letting us know the email address used to set up your monthly donation.

Thank you again,

--MAYDAY.US

P.S. Here's another really simple way to help -- just share the suggested text below with your Facebook and Twitter following:

I just supported #MAYDAYUS, a crowdfunded, kickstarted campaign to reclaim our democracy. You can check it out here: http://mayday.us.

----------------------
Paid for by MayDay PAC
Not authorized by any candidate or candidate’s committee
www.mayday.us
9 changes: 6 additions & 3 deletions backend/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,12 @@ def pledge_helper(handler, data, stripe_customer_id, stripe_charge_id, paypal_pa
'total': totalStr,
'user_url_nonce': user.url_nonce
}

text_body = open('email/thank-you.txt').read().format(**format_kwargs)
html_body = open('email/thank-you.html').read().format(**format_kwargs)
if data['recurring'] == True:
text_body = open('email/thank-you-recurring.txt').read().format(**format_kwargs)
html_body = open('email/thank-you-recurring.html').read().format(**format_kwargs)
else:
text_body = open('email/thank-you.txt').read().format(**format_kwargs)
html_body = open('email/thank-you.html').read().format(**format_kwargs)

env.mail_sender.Send(to=data['email'].encode('utf-8'),
subject='Thank you for your pledge',
Expand Down

0 comments on commit 406b808

Please sign in to comment.