missed-message-worker: Send email through email_senders.

We have shifted to a generic queue to send all the emails. This queue
can retry in case of network issues; this makes sure that the emails are
always sent.
This commit is contained in:
Umair Khan 2017-12-20 10:19:38 +05:00 committed by Greg Price
parent e0f30d02f2
commit 898acc4278
1 changed files with 1 additions and 1 deletions

View File

@ -366,7 +366,7 @@ def do_send_missedmessage_events_reply_in_zulip(user_profile: UserProfile,
'from_address': from_address,
'reply_to_email': formataddr((reply_to_name, reply_to_address)),
'context': context}
queue_json_publish("missedmessage_email_senders", email_dict)
queue_json_publish("email_senders", email_dict)
user_profile.last_reminder = timezone_now()
user_profile.save(update_fields=['last_reminder'])