Skip to content

Commit

Permalink
Hardcode year in renewal subject, add line break before signature
Browse files Browse the repository at this point in the history
  • Loading branch information
amakarudze committed Mar 16, 2023
1 parent a9fbc8d commit 3ba5b2f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
3 changes: 1 addition & 2 deletions globalpartners/emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


def send_sponsor_email(contact_person, contact_email, template, subject, errors=None):

content = render_to_string(template, {"contact_person": contact_person, "errors": errors})

send_email(content, subject, [contact_email])
Expand All @@ -26,7 +25,7 @@ def send_renewal_email(contact_person, contact_email):
"""Sends annual sponsors email asking if they are interested in supporting
our work in the new year.
"""
subject = f"Will you be supporting us again in {year}?"
subject = "Will you be supporting us again in 2023?"
template = "emails/globalpartners/renewal_email.html"
send_sponsor_email(contact_person, contact_email, template, subject)

Expand Down
2 changes: 1 addition & 1 deletion templates/emails/globalpartners/promotional_material.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{% endif %}

<p>Once again, thank you for supporting our work.</p>

<br>
<p>Sparkles, cupcakes and high-fives, πŸŽ‰πŸŽŠπŸŽ‰βœ¨πŸ°πŸ‘‹</p>

<p>Anna Makarudze <br>
Expand Down
2 changes: 1 addition & 1 deletion templates/emails/globalpartners/prospective_sponsor.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
if you would like to get on a call for more details.</p>

<p>Looking forward to hearing from you soon.</p>

<br>
<p>Sparkles, cupcakes and high-fives, πŸŽ‰πŸŽŠπŸŽ‰βœ¨πŸ°πŸ‘‹</p>

<p>
Expand Down
4 changes: 1 addition & 3 deletions templates/emails/globalpartners/renewal_email.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<html>
<p>Hello {{ contact_person.split.0 }},</p>

<p>Happy New Year!</p>

<p>We would like to thank you for your past support, we are so grateful that you chose
to help Django Girls on our mission to inspire women to fall in love with programming.</p>

Expand All @@ -20,7 +18,7 @@
by introducing a part-time paid Communications Officer role to help promote our work.</p>

<p>Thank you once again for supporting our work. We look forward to working with you again in 2023.</p>

<br>
<p>Sparkles, cupcakes and high-fives, πŸŽ‰πŸŽŠπŸŽ‰βœ¨πŸ°πŸ‘‹</p>

<p>Anna Makarudze <br>
Expand Down
2 changes: 1 addition & 1 deletion templates/emails/globalpartners/thank_you.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
in the new year. </p>

<p>Happy holidays from all of us at Django Girls!</p>

<br>
<p>Sparkles, cupcakes and high-fives, πŸŽ‰πŸŽŠπŸŽ‰βœ¨πŸ°πŸ‘‹</p>

<p>Anna Makarudze <br>
Expand Down

0 comments on commit 3ba5b2f

Please sign in to comment.