Skip to content

Provide the ability to set custom headers on outgoing email messages #24278

@yolabingo

Description

@yolabingo

Parent Issue

No response

User Story

I want to be able to set the email "Reply-To" header in my dotCMS form notification messages to use the user-submitted email address from the form. Something like this

From: dotcms-server@my-domain.com
To: me@my-domain.com
Reply-To: whoever-submitted-the-form@gmail.com
Subject: Dotcms contact form submission from whoever-submitted-the-form@gmail.com

So I can just hit "Reply" on received notification emails.

We should be able to add multiple, arbitrary, email headers - Reply-To is just a compelling example.

Before DKIM and other email security restrictions were in use, it was common to use the email address received on a web form submission as the "From" address on the notification email. This is no longer possible, so setting the Reply-To header is a common tactic.

Acceptance Criteria

Users can add arbitrary email headers using $mailer.sendEmail(), Workflow notifications, and any other mechanism I may not be aware of.

Users can use received form data as header values.

Proposed Objective

Please Select

Proposed Priority

Please Select

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

https://dotcms.zendesk.com/agent/tickets/110125

https://dotcms.slack.com/archives/CSHTYUR7H/p1677874072624659?thread\_ts=1677867559.183739&cid=CSHTYUR7H

https://dotcms.slack.com/archives/CSHTYUR7H/p1677874591103319?thread\_ts=1677874386.281699&cid=CSHTYUR7H

Assumptions & Initiation Needs

No response

Quality Assurance Notes & Workarounds

No response

Sub-Tasks & Estimates

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions