Hi, I am looking for support for the webform module, if this isn't the place, please kindly direct me where I can get my question answered-thank you.
Issue: I have 5 forms running on my site, they are all working correctly, meaning the forms are sending email successfully to both the form submitter and our own email address. My issue is this, I have a confirmation email message sent to each person who submits the form, emails arrive with the "from name" "email" in stead of the name of the company "Pride Pharmacy"
In each webrofm, under "E-mail header details" --> "E-mail from name" I have tried both the "Default: Pride Pharmacy" and the "Custom: Pride Pharmacy" and still all emails sent from the site come in with the from "email"; I have other sites where this does not occur so I am at a loss, your help will be greatly appreciated.
My site is hosted at JustHost.com
Apache version 2.2.24
PHP version 5.2.17
MySQL version 5.5.32-log
Architecture x86_64
Operating system linux
Comment | File | Size | Author |
---|---|---|---|
#8 | webform_from_name_select-2021069.patch | 804 bytes | quicksketch |
Comments
Comment #1
quicksketchHi there, yep this is the right place for Webform questions.
I haven't heard of this problem happening before, especially with just the string "email" instead of an actual e-mail address. Do you have any other modules installed with affect e-mail? What about any custom modules that you've written for your site? Since any module has the opportunity to modify outgoing e-mails through hook_email(), the problem could likely be a module conflict.
A simple thing you might try is switching Webform to use the "short" e-mail format instead of the full format. There is a setting for this under Config -> Content authoring -> Webform settings, in the "Advanced Options" fieldset. Some times using the shorter e-mail format helps some servers send e-mail correctly.
Comment #2
flock CreditAttribution: flock commentedHi quicksketch, thanks for the reply!
One detail that I did not mention, our email is "email@pridepharmacysd.com", so it's taking the local part of the email address in stead pf the stated "Pride Pharmacy".
I went into Config -> Content authoring -> Webform settings
Default email values are correct
email: email@pridepharmacysd.com
From name: Pride Pharmacy
Default Subject: Form submission from: %title
Format: Plain text
Format override: Per-webform configuration of e-mail format
ADVANCED OPTIONS
Tried the short format and the long format, cleared the cache as well before and after testing also the short format, did not fix the from "email"
Any other hints or ideas?, I will try.
Thanks again!
Comment #3
quicksketchCould you try sending yourself an e-mail from the site using the password reset form? Perhaps this is a hosting issue. If you find that all e-mail addresses are getting mangled on the way out, you might look into using an external mail server (like Gmail) to send your mail using the SMTP module.
Comment #4
flock CreditAttribution: flock commentedHi quicksketch, I will do the test of password recovery, if that does not work I will try the SMPT module and report back any findings here just in case anyone runs into this issue in the future.
Thanks so much again!
Comment #5
quicksketchAny updates here? I'll probably marked this closed if it doesn't look like there's anything happening here. If you haven't already, taking a look over the many suggestions in #364673: Webform not sending e-mail (general troubleshooting, tips) may also help.
Comment #6
stenjo CreditAttribution: stenjo commentedHm, I think what I'm experiencing might be the same issue - or at least closely related:
Thankfully the feature #687606: Add conditional email sending feature was implemented recently and I was able to reconstruct my contact form so that the subject was preselected based on form url. It works like this:
Custom made contact form with the fields: Name, Your e-mail, Phone, Subject and Text. In addition I added the field "Destination" - a select options field containing a set of key|option pairs depending on who the customer wanted to contact. The Key|option list is something like this:
Now, for sending the e-mails I added two entries on the /node/[node_id]/webform/emails page: one for a confirmation message to the customer and one for the Destination. The entry on the webform/emails page lists something like:
The Value of "Your e-mail" entry has the E-mail from address set to Component and "Destination" selected. The option/e-mail mapping looks like this:
The E-mail from name field is set to Component: "Destination" too.
If I want the form preselected to send contact request to bbb@email.com I would use the local url: /contact/key=2 as the default value of the Destination field is set to
[current-page:query:key]
The form works in the sense that e-mails are sent to the correct receipients, but when received it looks like the sender information is a little messed up. The from address looks like this:
username@myserverhost.com on behalf of 2 <bbb@email.com>
Why is this so? I would have expected something like
username@myserverhost.com on behalf of Belgium <bbb@email.com>
am I right?For the record: I'm running webform 7.x-4.0-alpha9
Comment #7
quicksketchThanks @stenjo for your report. This probably should have been filed as a separate issue considering it's against 4.x, but I appreciate the extensive and clear report of the problem.
That indeed sounds like a bug. I'll see if I can reproduce it.
Comment #8
quicksketchI reproduced the problem easily enough. This patch solves the problem by converting select list values to their labels when used as the FROM name in e-mails. Committed to 4.x branch. Thanks for the report!
Comment #10
dialn CreditAttribution: dialn commentedthankyou @stenjo