Skip to content

Commit

Permalink
T1856 FIX incoming emails when no reply-to is set
Browse files Browse the repository at this point in the history
- The value could be empty but not false.
  • Loading branch information
ecino committed Sep 26, 2024
1 parent 9a15c5e commit 89edc5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crm_request/models/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def message_new(self, msg, custom_values=None):
"categ_id": category_id,
"name": subject,
# Our contact forms use the reply-to field for the sponsor's email
"email_from": msg.get("reply_to", msg.get("from")),
"email_from": msg.get("reply_to") or msg.get("from", ""),
}

if "partner_id" not in custom_values:
Expand Down

0 comments on commit 89edc5b

Please sign in to comment.