Description
When sending emails via the Gmail API, all replies go directly to the sender. Users might want to specify a custom Reply-To header for campaigns.
Steps to Reproduce
- Go to Campaign Builder.
- Add an Email step.
- Notice there's no way to set a "Reply-To" address.
Expected Behavior
Add a reply_to field in the Campaign or Email Step model. When drafting the raw email for the Gmail API, include the Reply-To header.
Implementation Hints
# backend/campaigns/services.py
from email.message import EmailMessage
msg = EmailMessage()
msg['To'] = lead.email
msg['From'] = connected_account.email
if step.reply_to:
msg['Reply-To'] = step.reply_to
Description
When sending emails via the Gmail API, all replies go directly to the sender. Users might want to specify a custom
Reply-Toheader for campaigns.Steps to Reproduce
Expected Behavior
Add a
reply_tofield in the Campaign or Email Step model. When drafting the raw email for the Gmail API, include theReply-Toheader.Implementation Hints