Closed (won't fix)
Project:
Drupal core
Version:
6.x-dev
Component:
contact.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
5 Mar 2008 at 04:15 UTC
Updated:
23 Sep 2010 at 14:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dingbats commentedI'm using the contact module for anonymous feedback and I ran into the same problem. I've attached two patches that put the sender's email address into the email body. For e.g. "John (john@example.com) has sent a..." instead of "John has sent a...".
I'm using Drupal. 5.7 and so have only tested the first patch (show_from_in_contact_email.patch) - the 6.1 patch (show_from_in_contact_email.patch-d6.patch) is yet untested.
Comment #2
josesanmartin commented+2
It's useful, useful, useful.
Tested this code in my 5.7 website and it's working nice.
Unfortunately this causes a string change and as far as I know it can't be commited before D7, right?
Comment #3
dries commentedOdd, in my case, I can just hit reply, and I'll send a reply to the sender of the message. It sounds like a bug in the SMTP module?
Would be good if we could intercept drupal_mail() so we could write a test for this ... :) Care to give that a try?
Comment #4
dingbats commentedIt could also be an issue for those using Google SMTP.
Google's SMTP only allows From and Reply-To to be the email address of the account.
For example, if I authenticate myself as user@example.com, then I the From and Reply-To must be set to email via user@example.com.
If I want a different From or Reply-To address, this article may provide an answer.
In any case, those sites which have this problem are those using an SMTP server that doesn't allow setting an arbitrary From or Reply-To. This patch will be useful to them.
Comment #5
dave reidThis is a known problem with the SMTP module overwriting the email from value.
Comment #6
dingbats commentedGoogle's SMTP will rewrite the sender's email, so if there are enough people using Drupal with Google's SMTP, their concerns are worth looking into.
Dave Reid wrote:
SMTP module may or may not overwrite, but even if it doesn't, Google would rewrite it, so why not put the sender's email in the mail body and guarantee that the recipient will have the sender's email address?
Here are some other voices in the crowd:
The HEAD revision of contact.module currently has the sender's email in the mail body -- http://drupalcode.org/viewvc/drupal/drupal/modules/contact/contact.modul... -- why not do the same for Drupal 6?
Comment #7
dave reidSince this would change strings this wouldn't be accepted for D6. You may be interested in the Contact 6.x-2.x alternate module which is a backport of the current core D7 module, which has this fix.
Comment #8
Anonymous (not verified) commentedSuccessfully tested show_from_in_contact_email-d6.patch from #1 using Drupal 6.19.
Thank you.
Comment #9
dagmarTake a look to: #607204: Cannot reply to emails sent via Gmail maybe it helps.