Closed (fixed)
Project:
Webform
Version:
6.x-2.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Apr 2008 at 05:53 UTC
Updated:
3 May 2008 at 18:53 UTC
Default contact form works to set From name and address, but Webform e-mails are being sent with name "H-Sphere Httpd Daemon" and e-mail "httpd@web4.phonywebhost.net".
Don't know if this is helpful, but here's debug output:
* E-mail Headers:
Array
(
[X-Mailer] => Drupal Webform (PHP/5.2.5)
)
To: email_name@yahoo.com
From: "Petra & Colin" <info@domainname.com>
Subject: Form submission from: [title]
E-mail Body:
Submitted on 04/02/2008 - 23:47
Submitted by user: colin [207.181.225.85]
Submitted values are:
Address: email_name@yahoo.com
Attending: no
The results of this submission may be viewed at:
/chicago/rsvp2?sid=15
* E-mail Headers:
Array
(
[X-Mailer] => Drupal Webform (PHP/5.2.5)
)
To: email_name@gmail.com
From: "Petra & Colin" <info@domainname.com>
Subject: Form submission from: [title]
E-mail Body:
Submitted on 04/02/2008 - 23:47
Submitted by user: colin [207.181.225.85]
Submitted values are:
Address: email_name@yahoo.com
Attending: no
The results of this submission may be viewed at:
/chicago/rsvp2?sid=15
* $form_state is:
Array
(
[storage] =>
[submitted] => 1
[values] => Array
(
[submitted] => Array
(
[1] => email_name@yahoo.com
[2] => no
)
[details] => Array
(
[email_subject] => default
[email_from_name] => Petra & Colin
[email_from_address] => info@domainname.com
[nid] => 19
)
[op] => Submit
[submitbutton] => Submit
[form_build_id] => form-0a517a4fb8a3bd177b1b1140c53d0ad1
[form_token] => 935b11c91123ca6deecd774d7ae59c21
[form_id] => webform_client_form_19
[submitted_tree] => Array
(
[address] => email_name@yahoo.com
[attending] => no
)
)
[clicked_button] => Array
(
[#type] => submit
[#value] => Submit
[#weight] => 1000
[#post] => Array
(
[submitted] => Array
(
[address] => email_name@yahoo.com
[attending] => no
)
[details] => Array
(
[email_subject] => default
[email_from_name] => Petra & Colin
[email_from_address] => info@domainname.com
)
[form_build_id] => form-6d8c6cee6371022223b1f96d96c96c80
[form_token] => 935b11c91123ca6deecd774d7ae59c21
[form_id] => webform_client_form_19
[op] => Submit
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => submitbutton
)
[#array_parents] => Array
(
[0] => submitbutton
)
[#processed] =>
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#name] => op
[#button_type] => submit
[#executes_submit_callback] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#id] => edit-submitbutton
)
[redirect] =>
)
* $_SERVER is:
Array
(
[FCGI_ROLE] => RESPONDER
[CONTENT_LENGTH] => 1162
[CONTENT_TYPE] => multipart/form-data; boundary=---------------------------12358665320865
[DOCUMENT_ROOT] => /hsphere/local/home/petra/domainname.com
[HTTP________________] => ------------
[HTTP_ACCEPT] => text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
[HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
[HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
[HTTP_CONNECTION] => keep-alive
[HTTP_COOKIE] => SESSc13225e752faadd31b6d34b40b1e3153=m5gssd5lqt9dlpbaarrqggsm64; SESS69bbce4208e445682d9ae080db935e83=vurr8iinsvtil7uoq69okeiit6; has_js=1; dhtml_menu=sub50009Administer2,sub49995Siteconfiguration18,sub49975Prague244,sub50000Chicago248; navigationtree=0
[HTTP_HOST] => www.domainname.com
[HTTP_KEEP_ALIVE] => 300
[HTTP_REFERER] => http://www.domainname.com/chicago/rsvp2
[HTTP_USER_AGENT] => Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13
[PATH] => /hsphere/shared/bin:/hsphere/shared/sbin:/hsphere/local/var/vpopmail/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin
[REDIRECT_QUERY_STRING] => q=chicago/rsvp2
[REDIRECT_REDIRECT_STATUS] => 200
[REDIRECT_STATUS] => 200
[REDIRECT_URL] => /index.php
[REMOTE_ADDR] => 207.181.225.85
[REMOTE_PORT] => 19149
[SCRIPT_FILENAME] => /hsphere/local/home/petra/domainname.com/index.php
[SERVER_ADDR] => 216.86.146.13
[SERVER_ADMIN] => webmaster@domainname.com
[SERVER_NAME] => domainname.com
[SERVER_PORT] => 80
[SERVER_SIGNATURE] => <ADDRESS>Apache/1.3.41 Server at domainname.com Port 80</ADDRESS>
[SERVER_SOFTWARE] => Apache/1.3.41 (Unix) mod_fastcgi/2.4.2 mod_mono/1.2.4 mod_perl/1.30 PHP/4.4.8 mod_psoft_traffic/0.2 mod_ssl/2.8.31 OpenSSL/0.9.8b FrontPage/5.0.2.2635
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => POST
[QUERY_STRING] => q=chicago/rsvp2
[REQUEST_URI] => /chicago/rsvp2
[SCRIPT_NAME] => /index.php
[ORIG_SCRIPT_FILENAME] => /hsphere/shared/php5/bin/php-cgi
[ORIG_PATH_INFO] => /index.php
[ORIG_PATH_TRANSLATED] => /hsphere/local/home/petra/domainname.com/index.php
[ORIG_SCRIPT_NAME] => /php-fastcgi/php-cgi
[PHP_SELF] => /index.php
[REQUEST_TIME] => 1207201652
[argv] => Array
(
[0] => q=chicago/rsvp2
)
[argc] => 1
)
* $_POST is:
Array
(
[submitted] => Array
(
[address] => email_name@yahoo.com
[attending] => no
)
[details] => Array
(
[email_subject] => default
[email_from_name] => Petra & Colin
[email_from_address] => info@domainname.com
)
[form_build_id] => form-6d8c6cee6371022223b1f96d96c96c80
[form_token] => 935b11c91123ca6deecd774d7ae59c21
[form_id] => webform_client_form_19
[op] => Submit
)
Comments
Comment #1
quicksketchThis looks like your web host is adding or changing the headers in the emails webform sends out. When other emails are sent out from your Drupal site (like the lost password or account confirmation emails), do they also have these values for the FROM information? It might also be helpful to post the raw headers from the emails you receive. Maybe the FROM is being set but some other header actually shows up in the email client.
Comment #2
selfsimilar commentedMy thoughts are - maybe webform is not setting all the headers? I've listed two e-mail headers below. The first is from the default Drupal contact form and the received e-mail is formatted correctly. The second is from the email received from the webform and the FROM fields are incorrectly formatted. I did a diff and the Drupal contact form has the following lines that webform doesn't:
lines 13-16:
lines 25-27:
lines 29-31
one more minor difference is that line 32
From: colin@EMAIL.netis printed before the Message-Id in the Drupal contact e-mail and after the Message-Id in the webform e-mail.
Raw headers:
Headers from e-mail sent by default Drupal contact form with proper FROM
Headers from e-mail sent by webform with improper FROM
Comment #3
mat101010 commentedI am getting the identical results that selfsimilar posted above. The FROM name and email address are replaced with
On Thu, Apr 3, 2008 at 11:46 PM, <bordercompany@p3slh140.shr.phx3.secureserver.net>Has anyone found a quick fix? I can post the raw headers but I didn't see the point as the same issue is going on and selfsimilar did a nice job of cleaning it up. Reply if you think more examples will help. running D6.0
Comment #4
DaveNotik commented+1
Comment #5
selfsimilar commentedBehavior no longer present under Drupal 6.2 and Webforms 6.x-2.0-beta5.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.