do not retry sending email in send_email()

This commit is contained in:
Son 2021-12-16 21:31:01 +01:00
parent 75d6b1dab5
commit 544df7034d

View file

@ -302,7 +302,12 @@ def send_email(
transaction = TransactionalEmail.create(email=to_email, commit=True)
# use a different envelope sender for each transactional email (aka VERP)
sl_sendmail(TRANSACTIONAL_BOUNCE_EMAIL.format(transaction.id), to_email, msg)
sl_sendmail(
TRANSACTIONAL_BOUNCE_EMAIL.format(transaction.id),
to_email,
msg,
can_retry=False,
)
def send_email_with_rate_control(