I love the Webform Module don't get me wrong - it's capeable of automating so much information gathering that it is worth its weight in silicon. However, I have stumbled across an issue with it regarding the automated emailing of submissions. Here's my problem:
I have set up the Webform Module for a corporate website, and it is used to collect employment submissions from prospective employees. This is taken quite seriously by the company - naturally. Forms are currently being submitted, and they are correctly stored in the DB, but the email version is not making to the appropriate inbox. BIG PROBLEM. I've checked many things including using my own email address, and that works fine, so I know it CAN work. We also checked the personal and Company SPAM filters and nothing was floating around in the Quarantine, so that's no the issue.
QUESTION:
Where else can I look for an answer and a solution? Has anyone else had this problem before? If so, your advice is priceless to the community!
Thank You in advance to anyone willing to help!
Warm Regards,
Chris,
www.SaltwaterMedia.net
New York City
info@SaltwaterMedia.net
Comments
Any luck with this?
I'm having the same problem with webform. I go through the form, submit, everything's ok, but no sent e-mail? I'm using version 5.
Any ideas?
Patrick
Same problem
I set up webform, it is very nice. Handles the submit fine redirects to the confirmation, but no emails sent.
I'm looking at the code for
I'm looking at the code for the module right now, and there is no call to "drupal_mail_send()"...
http://api.drupal.org/api/HEAD/function/drupal_mail_send
Don't flame me for this, I'm new here, but just trying to figure this out too!
Troubleshooting
Are the email addresses that don't get the emails, NEVER getting the emails, or not getting SOME emails?
How is Webform sending the emails? ... SMTP or php? ... is there a log? With SMTP you can log in and look at Sent.
Where are all the To: domains? In-house, or external?
Will it work for, say, Yahoo or GMAIL addresses?
Spam filtering happens at several levels -- pre-mail-server spam nets, internal, by account, and by client.
Could there be certain words in the submissions that are triggering spam filtering?
To best troubleshoot, you'll have to boil it down to two reproducible cases, "this ALWAYS WORKS", and "this small change makes it NEVER WORK."
It could be a Webform bug/fault/setting, but spam filtering causes enormous problems. I'd eliminate the spam filter possibility first.
Quint
Shalla.Net
Same issue tried both 5.x-1.4 and 5.x-1.x-dev
Site e-mails (user account creation) go out fine to the same e-mail addresses that webform submissions don't.
Robbie(theGeek)
Possible Problem with $email_from_sting field in webform mod?
Hi,
My emails are failing too whenever I enter a Name into the text field that I've mapped to "Email From Name" in the Webform settings. In the log from my smtp server (fyi - I'm running Drupal 5.2, with 5.x-1.4 of Webforms, using Mercury/32 webserver on my Win pc), the MAIL FROM: field is messed up. The ">" is missing from the right hand side of the proper name field. (eg. MAIL FROM: "<"John Smith"<"johnsmith@website.com">" ...note that I added quotes before and after greater than/less than signs otherwise the string won't display on this forum.)
If I don't enter a name, it works fine and sends the mail. Entering a Name results in errors with an "Illegal From Address" on the smtp server.
I went to line 1395 in the Webform code and tried adding the missing ">" after the email_from_name string. That didn't work (the ">" gets added but smtp mail still doesn't like it). I tried single quotes as well ("<'name'>") and that doesn't work. I thought I read somewhere that SMTP requires double quotes around the proper name. If I do this (add the double quotes to name portion of email_from_string), that doesn't work either (email still fails).
By mistake one time, I added '\"' (forward slash with double quote - this is how I coded the single quote version so that PHP would ignore the first single quote as the end of the string) before and after email_from_name when building the string. That did work. I was even able to reply to the originator and I received the reply. But I still don't think that's the proper solution (name shows up in received client email as \"John Smith\", then the forward slash characters (\) magically disappear when you read the email (this is on MS outlook anyway - hotmail on the other hand, does not strip the \).
Here's the code I changed (line 1395):
***BEFORE***
$email_from_string = $email_from_name . ' <' . $email_from_address . '>';
***AFTER (this works, but email looks funny at client)***
$email_from_string = '\"' . $email_from_name . '\"' . ' <' . $email_from_address . '>';
In the smtp log after the changes, the name ("Email From Name") in the "MAIL FROM:" field doesn't show up at all (MAIL FROM only displays the proper email address), but it still shows up on the client mail system - e.g. - "\John Smith"\ on behalf of [webmaster@mywebsite.com]...etc. Apparently the proper name gets stuck somewhere else before SMTP gets the mail.
Like I said, this worked for me, but I don't think it's the proper solution. This should be a fairly easy fix for anyone interested in spending some time reading up on smtp formats and figuring out what else webform (perhaps Drupal mail) does with this string.
I'm new to this Drupal stuff, is this the correct place to report problems???
I was able to resolve this
I was able to resolve this simply by blanking out the "from name" in the webform global configuration screen. Not ideal, but it works for me.
same problem
I'm able to solve this the same way - blank "from name" and emails get sent, although I still can't get it to CC to the form submitter. I'm using the SMTP module to send emails, and it works fine for other emails from the website, just not webform.
Brilliant!
Thanks a lot!
Same problem, same solution :D
file an issue on the module supportpage
I file an issue on the webform supportpage as this is the way the module maintainer wants it:
Possibly a Settings Problem
I was just going through dealing with the following error after submitting a webform:
warning: preg_match() expects parameter 2 to be string, array given in /path/to/root/includes/bootstrap.inc on line 723
By default, Webform Mail Settings "E-mail subject:" was set to the first field in my form, which unfortunately was a field of type select.
If I changed this field to either a custom message or a text field, I no longer had the error.
email function not working..
Hi,
I am using drupal 6.12. Webform is best for creating form as u like.but one issue with this that when a user submit the webform, all details send to administrator but a copy don't send to user. How this problem can resolved? i want to submit all user details to admin as well as a copy also send to user email? should i use another module instead of webform module? make it clear asap.
Regd's
Ritu Raj
----------
Warm Regards,
Ritu Raj