Skip to content

Commit

Permalink
include user IDs in email update reply links
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshData committed Nov 8, 2015
1 parent 84ffe4f commit ed76d60
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions events/management/commands/send_email_updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ def send_email_update(user, list_email_freq, send_mail, mark_lists, send_old_eve
emailreturnpath,
[user.email],
{
"user": user,
"date": datetime.now().strftime("%b. %d").replace(" 0", " "),
"eventslists": eventslists,
"feed": all_trackers, # use all trackers in the user's account as context for displaying events
Expand Down
2 changes: 1 addition & 1 deletion templates/events/emailupdate.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h4><a href="{{SITE_ROOT_URL}}{{meta.url|append_qsarg:utm}}">{{meta.title}}</a><
{% endfor %}

<p>To unsubscribe or change your email updates settings, go to <a href="{{SITE_ROOT_URL}}/accounts/profile?{{utm}}">your account settings</a>.</p>
<p>This email was sent by <a href="http://www.civicimpulse.com?{{utm}}">Civic Impulse, LLC</a>. You may contact us at <a href="mailto:hello@govtrack.us">hello@govtrack.us</a>. The email address this message was sent from is not monitored for replies.</p>
<p><small>This email was sent by <a href="http://www.civicimpulse.com?{{utm}}">Civic Impulse, LLC</a>. You may contact us at <a href="mailto:hello@govtrack.us?subject=Email%20update%20|%20ref#%20{{user.id}}">hello@govtrack.us</a>. The email address this message was sent from is not monitored for replies.</small></p>

{% endwith %}

Expand Down
4 changes: 2 additions & 2 deletions templates/events/emailupdate.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@

To unsubscribe or change your email updates settings, go to {{SITE_ROOT_URL}}/accounts/profile.

This email was sent by Civic Impulse, LLC <http://www.civicimpulse.com>. You may contact us at hello@govtrack.us. The email address this message was sent from is not monitored for replies.
This email was sent by Civic Impulse, LLC <http://www.civicimpulse.com>. You may contact us at hello+u{{user.id}}@govtrack.us. The email address this message was sent from is not monitored for replies.

{% endautoescape %}
{% endautoescape %}

0 comments on commit ed76d60

Please sign in to comment.