I am facing the issue described here.
In short: in my from email I want to put the name and emailaddress filled in in the form. Unfortunately gmail marks these emails as spam. A solution was offered with the webform reply to module, but hat hasn't been ported to D8.

In this comment Knalstaaf asks if this functioniality shouldn't be integrated in the webform module. I tend to agree.

This is another thread about this issue: https://www.drupal.org/node/1462192.

Please consider adding this.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Bartelli created an issue. See original summary.

jrockowitz’s picture

It is worth noting that the Reply-to for webform email is not the site's email addresses but the from address.
@see http://cgit.drupalcode.org/webform/tree/webform.module#n256

I am open to implementing this feature.

jrockowitz’s picture

I read this narration and it confirms exactly why I chose to use the 'from' email as the 'reply-to' for all emails generated by the Webform 8.x-5.x module. Does the 'reply-to' email address really need to be customizable?

jrockowitz’s picture

I have thought about this feature and decide it should be implemented. The reply-to and return-to should be fully customizable for all webforms globally and an individual webform.

Since Webform 8.x-5.x is still in beta, I can just setup the basic functionality which can be tweaked if needed.

jrockowitz’s picture

Title: Will there be a reply to field? » Add reply-to and return-path to email handler

  • jrockowitz committed 1f362f7 on 2859528-reply-to
    Issue #2859528: Add reply-to and return-path to email handler
    

  • jrockowitz committed 5dd3d80 on 2859528-reply-to
    Issue #2859528: Add reply-to and return-path to email handler. Write...
jrockowitz’s picture

Status: Active » Needs review
FileSize
90.01 KB

  • jrockowitz committed 4b61969 on 2859528-reply-to
    Issue #2859528: Add reply-to and return-path to email handler. Write...

Status: Needs review » Needs work

The last submitted patch, 8: add_reply_to_and-2859528-8.patch, failed testing.

BartNijs’s picture

Thank you for your reply.
I think many people will be happy with this feature.

  • jrockowitz committed b8b7994 on 2859528-reply-to
    Issue #2859528: Add reply-to and return-path to email handler. Fix tests...

  • jrockowitz committed 76e77e0 on 2859528-reply-to
    Issue #2859528: Add reply-to and return-path to email handler. Fix tests...
jrockowitz’s picture

Status: Needs work » Needs review
FileSize
91.88 KB

The attached patch makes the 'reply-to' and 'return-path' fully customizable, while defaulting them to the 'from mail' if left blank.

Before this patch, the 'from mail' was always being used as the 'reply-to', which might cause email to be marked as spam if not originating from the same server. Personally, I find Drupal's default behavior, that an email's 'from' and 'reply-to' could be different, very confusing.

I am probably going to commit this patch since it does allow users to customize the reply-to and return-path and we can handle the spam protection behavior in a new ticket.

  • jrockowitz committed e2efc5e on 8.x-5.x
    Issue #2859528 by jrockowitz: Add reply-to and return-path to email...
jrockowitz’s picture

Status: Needs review » Fixed

I committed that patch. Please download the latest dev release to review.

@see #2861898: How should Webform 8.x-5.x handle an email's 'reply-to' header?

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.