Download & Extend

E-mail from address: Custom; E-mail from name: Custom > Not being passed in e-mail

Project:Webform
Version:7.x-3.18
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

"E-mail subject: Custom: _____" -> Works great

"E-mail from address: Custom:__________"; "E-mail from name: Custom:___________" > Not passed along in actual email. E-mail shows default server/website email.

This occurs when emailing to "Value of "E-mail address". When using "E-mail to: [specific e-mail address]" all above fields work correctly.

Comments

#1

I am having this same problem, the webform is grabbing the default email from the site information.
Even the default email name is not displaying when looking at the email response.

#2

I am also having the same problem. I am on D 7.14 and Webform 7.x-3.13

#3

I am using the select options component and am having the same issue. Instead of pulling the email address from the list of options it always uses the default email address. Please let me know if you find a workaround.

Thanks

#4

same here. the "from" address is not pulling the form value, but rather the default address - subscribing

#5

Installing the Mime Mail module seems to have fixed this problem for me. I didn't have to configure anything just enabled and everything worked perfect again.

http://drupal.org/project/mimemail

#6

Can confirm this, running Drupal 7.19, with 7.x-3.18 Webform. The Custom 'From Address' is not working, it is always sending out the default 'From Address'. Will take a closer look and see if there's any patch I can come up with, but wanted t confirm. Would rather not install another module as a "fix" as in #5.

#7

Also having this problem running d7.20 and webform 7.x-3.17

thanks

#8

Assigned to:Anonymous» chowdhuriarijit

#9

Status:active» postponed (maintainer needs more info)

I haven't been able to confirm this problem. I did the following:

Make a new Webform with 3 fields:

Subject (Textfield)
To E-mail (E-mail)
To E-mail Select (Select list)

Then I set up two e-mails.

One e-mail:
E-mail to address: "To E-mail"
E-mail subject: Custom: Test subject
E-mail from address: Custom: test@localhost.localhost
E-mail from name: Custom: Test Name

And a second e-mail:
E-mail to address: "To E-mail select"
E-mail subject: Custom: Test subject2
E-mail from address: Custom: test2@localhost.localhost
E-mail from name: Custom: Test Name2

Both e-mails came through to my inbox fine with the proper subjects, from names, and from addresses. I tried with and without MIME Mail installed and both worked as expected. I'll need more information on how to reproduce this problem.

#10

Status:postponed (maintainer needs more info)» active

Oh... I just looked at the versions here. I'm running Webform 4.x. I'll need to reconfirm with 7.x-3.18. As an alternative, users might try upgrading to 4.x if you can, as my testing above did not exhibit the behavior.

#11

Assigned to:chowdhuriarijit» Anonymous

Not able to produce this problem in one of my project , where I have used webform.

#12

had same problem of From address always using the site address. i think it had something to do with the SMTP server not being local to the web server (i.e., MX is set to REMOTE MAIL EXCHANGER in DNS).

what got it working for me was to change drupal_mail in includes/mail.inc as shown below. i don't like changing core and this is probably not the best fix anyway. so i'm looking for other ideas here.

 
if ($default_from) {
    // To prevent e-mail from looking like spam, the addresses in the Sender and
    // Return-Path headers should have a domain authorized to use the originating
    // SMTP server.
    $headers['From'] = $headers['Sender'] = $headers['Return-Path'] = $default_from;
  }
  if ($from) {
-    $headers['From'] = $from;
+    $headers['From'] = $headers['Sender'] = $headers['Return-Path'] = $from;
  }
nobody click here