email.py: Change recipients argument of send_future_email to to_email.

This commit is contained in:
Rishi Gupta
2017-05-03 18:23:33 -07:00
committed by Tim Abbott
parent 0d4c1b0467
commit 68c172192b
7 changed files with 21 additions and 32 deletions

View File

@@ -397,11 +397,11 @@ def enqueue_welcome_emails(email, name):
'unsubscribe_link': unsubscribe_link
})
send_future_email(
"zerver/emails/followup_day1", [{'email': email, 'name': name}],
"zerver/emails/followup_day1", '%s <%s>' % (name, email),
from_email=from_email, context=context, delay=datetime.timedelta(hours=1),
tags=["followup-emails"])
send_future_email(
"zerver/emails/followup_day2", [{'email': email, 'name': name}],
"zerver/emails/followup_day2", '%s <%s>' % (name, email),
from_email=from_email, context=context, delay=datetime.timedelta(days=1),
tags=["followup-emails"])