My issue is similar to http://drupal.org/node/242080 -- The From line in webform submissions is being populated with the Drupal admin's email address (mine) rather than the sender's address. In the long headers, the From line is being populated correctly but most email apps are using the Sender information for the From line in the normal headers view.

In case that's unclear, this is my experience:

Mac Mail handles this correctly, putting the submitter's name and email in the From line

Thunderbird uses the correct From name and address but adds a "Sender" line with the Drupal admin email on it

Entourage puts the correct From name and address but adds (sent by *drupaladminemail*) to that line.

Outlook puts the Drupal admin email in the From line and says "on behalf of (submitter name and email)"

Outlook Web Access actually puts the drupal admin's name in the from line, and adds "on behalf of (submitter's name), though I'm guessing it only knows the admin name since it recognizes the email address from Active Directory.

Thinking this might have something to do with our exchange system, I changed the recipient to an account on a different email server and experienced the same results.

http://drupal.org/node/242080 was closed when the problem seemed to go away in beta5. Are other people not experiencing this problem in the current version? If not, I'm not sure what I might be doing differently to cause it. Drupal is running on rhel5 with php5.2.6, mysql 5.0.45 and apache 2.2.3 in a multisite setup. Any suggestions?

Comments

matze_1’s picture

Version: 6.x-2.6 » 5.x-2.6

Hi,

I got the same Problem :
Outlook puts the Drupal admin email in the From line and says "on behalf of (submitter name and email)"
Other simple PHP-forms on the site are working fine.
Updated from 5.x-26 to the dev 5.x-2.x-dev but it doesn't helped.

I don't know how to fix this Problem but I don't want to switch back to manually webform creation. Please help.

SystemInfo:
Drupal 5.16
MySQL 5.0.67
PHP 5.2.9
Webserver Apache/2.2.10 (Linux/SUSE)

aaront’s picture

Discovered today that contact form submissions using the core contact form are doing the same thing. submitted the issue here: http://drupal.org/node/656472 so hopefully someone will have a suggestion.

quicksketch’s picture

Status: Active » Closed (won't fix)

Thanks for the update aaront. Webform doesn't do any sort of special headers on it's e-mails (though if you'd like, you can force special headers by overriding theme_webform_mail_headers() or using hook_mail_alter()), it's just using Drupal core's mail handling. As noted in #656472: drupal_mail() mismatches the 'Sender' header and the 'From' header, Drupal's handling of "From" is actually correct, but it's mail clients that are handling it incorrectly in places.