Skip to content

Commit

Permalink
Merge branch 'jt/conditional_email_fix' into autostaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Jtang-1 committed Oct 25, 2023
2 parents 84650aa + c4653e1 commit 393eb87
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions corehq/messaging/scheduling/models/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,10 @@ def send(self, recipient, logged_event, phone_entry=None):

metrics_counter('commcare.messaging.email.sent', tags={'domain': logged_event.domain})
send_mail_async.delay(subject, message,
[email_address], logged_subevent.id,
domain=logged_event.domain, use_domain_gateway=True)
[email_address],
messaging_event_id=logged_subevent.id,
domain=logged_event.domain,
use_domain_gateway=True)

email = Email(
domain=logged_event.domain,
Expand Down

0 comments on commit 393eb87

Please sign in to comment.