mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 08:33:43 +00:00
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:
@@ -366,7 +366,7 @@ def do_send_missedmessage_events_reply_in_zulip(user_profile: UserProfile,
|
|||||||
'from_address': from_address,
|
'from_address': from_address,
|
||||||
'reply_to_email': formataddr((reply_to_name, reply_to_address)),
|
'reply_to_email': formataddr((reply_to_name, reply_to_address)),
|
||||||
'context': context}
|
'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.last_reminder = timezone_now()
|
||||||
user_profile.save(update_fields=['last_reminder'])
|
user_profile.save(update_fields=['last_reminder'])
|
||||||
|
|||||||
Reference in New Issue
Block a user