Ticket #12413 (confirmed Bug)
No "Reply-To" header set when member submits contact form
Reported by: | tonim | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 4.x |
Component: | Backend (Python) | Version: | 4.2 |
Keywords: | email, contact, upstream | Cc: | eleddy |
Description (last modified by kleist) (diff)
This field is intentionally left blank.
Change History
comment:1 Changed 4 years ago by kleist
- Status changed from new to confirmed
- Version set to 4.1
- Type changed from Bug to Feature Request
comment:2 Changed 3 years ago by kleist
- Priority changed from minor to major
- Keywords contact, upstream added; contact removed
- Component changed from User Experience and Interface to Backend (Python)
- Description modified (diff)
This behavior is reproducable in Plone 4.2.2, and indeed highly undesirable.
When the receiver of a mail sent from the contact form replies to this mail, she expects that the reply will reach the user who submitted the contact form. Not the site administrator (which might even be a distribution list... imagine the embarassing situations this Plone "feature" could lead to!)
The naïve solution would be to add a "Reply-To" header to https://github.com/plone/Products.CMFPlone/blob/master/Products/CMFPlone/skins/plone_templates/author_feedback_template.pt like so:
dummy python:request.RESPONSE.setHeader('Reply-To', options/sender_from_address)
but this doesn't work.
Because although the form script https://github.com/plone/Products.CMFPlone/blob/master/Products/CMFPlone/skins/plone_form_scripts/send_feedback.cpy does juggle with "send_from_address", a Reply-To header can't be passed to MailHost.send():
http://zope3.pov.lt/trac/browser/Products.MailHost/trunk/src/Products/MailHost/MailHost.py#L220
So I guess we can't do much about this, but must pass the ball to the Zope guys?
See also https://bugs.launchpad.net/zope2/+bug/965178 which has an interesting discussion about SMTP headers.
comment:3 Changed 3 years ago by kleist
- Version changed from 4.1 to 4.2
- Type changed from Feature Request to Bug
comment:4 Changed 3 years ago by kleist
- Summary changed from can't reply to messages from contact form to No "Reply-To" header set when member submits contact form
comment:5 Changed 3 years ago by kleist
I just created https://bugs.launchpad.net/zope2/+bug/1070863