# “Reply-to” field in email messages

**URL:** <https://forum.mautic.org/t/reply-to-field-in-email-messages/21492>\
**Category:** Product Support\
**Created:** [November 2, 2021, 7:21pm UTC](https://forum.mautic.org/t/reply-to-field-in-email-messages/21492 "2021-11-02T19:21:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mojo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mojo/32/543_2.png) [@mojo](https://forum.mautic.org/u/mojo)\
**Post date:** [November 2, 2021, 7:21pm UTC](https://forum.mautic.org/t/reply-to-field-in-email-messages/21492/1 "2021-11-02T19:21:06Z")

</div>

Mautic: v3.3.4

I’m having trouble with setting “reply-to” field in email messages from form.

I have a form in Components \> Forms.  
The user completes the form and give us his e-mail address.  
I created a “Campaign Form” and not a “Standalone Form”.

In the “Actions” tab of this form, I choose the “Send form results” option  
I set the “Reply to contact” field to “Yes”.  
In “To” field, I enter the email address of our salesperson.  
Send to owner=No  
Send to contact=No

A message is created and sent from Mautic to the assigned merchant.  
Works fine 😉

However, as he receives an email, the “reply-to” field is not set to the user’s email, but to the administrator/system email ☹

Description of the tooltip field

> Set the contact’s email as the “Reply To” address so that if replying to the results email, the contact address will be the default recipient.

Why is it not working?

How to change it so that the merchant can reply to the email of the user who filled in the form?  
Where am I making a mistake?

---

<div class="post-metadata">

**Author:** ![mojo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mojo/32/543_2.png) [@mojo](https://forum.mautic.org/u/mojo)\
**Post date:** [November 9, 2021, 6:59pm UTC](https://forum.mautic.org/t/reply-to-field-in-email-messages/21492/2 "2021-11-09T18:59:57Z")

</div>

I tested both  
Campaign Form and Standalone Form

Can anybody help?  
I have tried various ways to set this option, but it still doesn’t work.

---

<div class="post-metadata">

**Author:** ![mojo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mojo/32/543_2.png) [@mojo](https://forum.mautic.org/u/mojo)\
**Post date:** [November 22, 2021, 10:27am UTC](https://forum.mautic.org/t/reply-to-field-in-email-messages/21492/3 "2021-11-22T10:27:35Z")

</div>

Option available in Mautic does not work ☹  
I still count on your help.

---

<div class="post-metadata">

**Author:** ![wget](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/wget/32/6916_2.png) [@wget](https://forum.mautic.org/u/wget)\
**Post date:** [February 22, 2022, 2:08pm UTC](https://forum.mautic.org/t/reply-to-field-in-email-messages/21492/4 "2022-02-22T14:08:54Z")

</div>

At Collabora, we just finished our transition from 2.16.5 to Mautic 4.1.2 (we upgraded incrementally from major versions to another). From now one, we are also experiencing this problem.

Previously with our 2.16.5 instance the field `To` was populated with the email of the person reaching to us via the contact form.

Now with 4.1.2:

- the `To` is populated to the list of sales receiving this message.
- the `Reply-To` is empty, not specified at all, although the option `Reply to contact` is set to `Yes`
- the `From` is populated from the source address we defined in the Mautic options for our email relay transactional service.

I used PHP-Mailer to test whether our transactional email service was removing/tweaking fields on the fly, but the latter is just sending things raw without any modification. The transactional service is not at fault and the issue seems to come from Mautic, or at least the configuration we have.

I’m still debugging to know what’s wrong. In the meantime if @mojo, you found the answer, please post here =)

---

<div class="post-metadata">

**Author:** ![wget](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/wget/32/6916_2.png) [@wget](https://forum.mautic.org/u/wget)\
**Post date:** [March 2, 2022, 12:41pm UTC](https://forum.mautic.org/t/reply-to-field-in-email-messages/21492/5 "2022-03-02T12:41:01Z")

</div>

This was a regression. I can confirm the problem is now fixed with the just released Mautic 4.2.0.

The PR that fixes it:

> <https://github.com/mautic/mautic/issues/10675>
>
> \### Mautic Version
> 
> 4.1.0 (4.0.0 does not have this issue)
> 
> \### PHP version
> …
> 
> 7.4.20
> 
> \### What browsers are you seeing the problem on?
> 
> Safari
> 
> \### What happened?
> 
> If we have a form with a \*\*Send form results\*\* action and we set \*\*Reply to contact\*\* to \*\*Yes\*\*, it is no longer sending the e-mail with a reply-to header matching the e-mail field.
> 
> Instead it send from the global reply to, and if we try to reply it from our mail client will send to noreply@ourcompany.com instead of the originators email
> 
> I believe this could possibly be related to #10471 or #9812 as they seem to be in the same area of development.
> 
> \### How can we reproduce this issue?
> 
> All info above
> 
> \### Relevant log output
> 
> Do not think it is relevant but for the completeness this appeared in the log when an incoming message arrive
> \`\`\`shell
> \[2021-12-09 08:22:27\] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /var/www/mautic/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":\[\],"orderedValues":\[\],"keywordValues":\[\],"assignedValues":\[\],"i":0,"last":false} \[\]
> \[2021-12-09 08:22:27\] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /var/www/mautic/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":\[\],"orderedValues":\[\],"keywordValues":\[\],"assignedValues":\[\],"i":0,"last":false} \[\]
> \[2021-12-09 08:22:27\] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /var/www/mautic/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":\[\],"orderedValues":\[\],"keywordValues":\[\],"assignedValues":\[\],"i":0,"last":false} \[\]
> \[2021-12-09 08:22:27\] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /var/www/mautic/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":\[\],"orderedValues":\[\],"keywordValues":\[\],"assignedValues":\[\],"i":0,"last":false} \[\]
> \[2021-12-09 08:22:27\] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /var/www/mautic/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":\[\],"orderedValues":\[\],"keywordValues":\[\],"assignedValues":\[\],"i":0,"last":false} \[\]
> \[2021-12-09 08:22:27\] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /var/www/mautic/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":\[\],"orderedValues":\[\],"keywordValues":\[\],"assignedValues":\[\],"i":0,"last":false} \[\]
> \[2021-12-09 08:22:27\] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /var/www/mautic/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":\[\],"orderedValues":\[\],"keywordValues":\[\],"assignedValues":\[\],"i":0,"last":false} \[\]
> \[2021-12-09 08:22:27\] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /var/www/mautic/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":\[\],"orderedValues":\[\],"keywordValues":\[\],"assignedValues":\[\],"i":0,"last":false} \[\]
> \[2021-12-09 08:22:27\] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /var/www/mautic/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":\[\],"orderedValues":\[\],"keywordValues":\[\],"assignedValues":\[\],"i":0,"last":false} \[\]
> \[2021-12-09 08:22:27\] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /var/www/mautic/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":\[\],"orderedValues":\[\],"keywordValues":\[\],"assignedValues":\[\],"i":0,"last":false} \[\]
> \`\`\`
> 
> 
> \### Code of Conduct
> 
> \- \[X\] I confirm that I have read and agree to follow this project's Code of Conduct
