Just an error message after submission. But the form submission is actually being sent.

Unable to send e-mail. Please contact the site admin, if the problem persists

Comments

quicksketch’s picture

This is a Drupal error. It means that your entire Drupal site is unable to send e-mails, not just Webform. It probably means there is a misconfiguration in your PHP installation or sendmail/postfix is missing from your server.

Octothorn-1’s picture

Version: 6.x-2.x-dev » 6.x-2.3
Category: support » bug

Actually, I just started getting this error message too.

HOWEVER - both emails (one to me and one to the client filling out the form) are sent and received.
The form never did this until I did one thing - I added page breaks.

I haven't removed the page breaks to see if the error goes away. The form works, it just issues a bogus error.

najibx’s picture

what I meant was ... the emails were actually being sent. and I did receive it. just the error message shows up (in correct errors, error msg should not be there).

hmm ... i do have page breaks installed.

quicksketch’s picture

Status: Active » Closed (duplicate)
steffenjung’s picture

Priority: Normal » Critical

I´m getting the same error message "Unable to send e-mail...." with version 6.9 when try to send via webform and also on other parts of the system e.g. when creating new user. The mails will not be sent from my system.

Before I´ve added some modules the mail send process worked fine.

I have installed the following modules. Since then I´m getting this error:
- local_menu-6.x-1.5
- webform-6.x-2.4 (by the way the following error still occurs even the fix is included in this version: #360443: Empty results tab generates SQL error)

I´m also installed the german language pack "de-6.x-1.0-rc1".

How can we fix that issue? Can I help with more background information?

Steffen

steffenjung’s picture

The problem with "Unable to send e-mail...." was a missing configuration at my hoster. I only had to set a standard sender e-mail address which is used for my scripts. Now it is working fine.

The following problem still exist (I know ... not important in that thread, but to keep it up to date):
- webform-6.x-2.4 (error still occurs even the fix is included in this version: #360443: Empty results tab generates SQL error)

chrisbeaman’s picture

Version: 6.x-2.3 » 6.x-2.6
Priority: Critical » Normal
Status: Closed (duplicate) » Active

For me, I have Webform installed on both our dev site and our production site, which are basically the same except that the dev site has a bunch of test modules on it. It sends emails fine on the dev site but not on the production site. I've gone through and painstakingly ensured that every option between the two are the same, yet it still doesn't send emails. Furthermore, when I try to submit the form, I get the error twice, like so:

* Unable to send e-mail. Please contact the site admin, if the problem persists.
* Unable to send e-mail. Please contact the site admin, if the problem persists.

Why could this be? Both the dev site and the live site are on the same server, with the same mail configurations.

SirClickalot’s picture

I too am having the same symptom - i.e. my forms work fine on my (localhost, Apache on XXAMP) server but when I deploy the site to the server, I get ...

"# warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\includes\mail.inc on line 193.
# Unable to send e-mail. Please contact the site admin, if the problem persists."

THE IMPORTANT THING that I note is that the above says 'C:\Program Files' etc. - surly this must mean that oddly, even though the site is running on a live server, that the Webform module is trying to send via my local Apache!

Does this shed any light on things? Do you get the same symptoms?

N

JoshPSU’s picture

I had this problem too:

" * Unable to send e-mail. Please contact the site admin, if the problem persists.
* Unable to send e-mail. Please contact the site admin, if the problem persists.

Why could this be? Both the dev site and the live site are on the same server, with the same mail configurations."

Emails were actually sent. From the webform node that you are entering, see the "Conditional Email Recipients" option, open it, and make sure that all boxes that are checked are actual email address. It somehow used other non-email based text and attempted to email those as well. It doesn't stop the other emails from being sent, but it does make the person submitting the form think that they didn't successfully submit, and therefore they attempt to submit again and again.

RichieRich’s picture

I'm also getting the same problem. Emails are sent fine but I'm being informed that the sending of the email failed.

Just when I thought that webforms was the perfect module for my needs.

I still don't get any error messages when sending from Druapl's standard Contact Form module by the way.

matsta’s picture

Solution from post #9 worked for me. I had a conditional recipient option selected that was not an email address.

Thanks.

najibx’s picture

Status: Active » Fixed

yep, non email address conditional recipient option were selected.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Whackler’s picture

Few year passed. got the same problem. Nothing to do with conditional recipient or sendmail settings.
Upgraded to Drupal 6.20 and Webform 3.6 and still the error. Mails were sent though. No errors in Drupal core or Ubercart.

Couldnt figure it out, but when i created a new webform with all the same fields there was no error.

So this is my solution...

cmsproducer’s picture

In my case, the cause was even simpler:
The webform module does not like it if the 'to:' and 'from:' email addresses are the same (hence the validation failure). I made them different and the problem went away.

I suggest that the module should do better error handling (if these validation errors can be categorized into finite groups) so that the message gives an idea of the offending field(s) or configuration option(s).

getsby’s picture

Version: 6.x-2.6 » 7.x-3.9
Component: Code » User interface

In my case the problem was with the setting in Configuration -> Site Information -> E-mail address. The thing is that this e-mail should be ending with the domain name hosted on same hosting account.

AimAdvantage’s picture

Also- in the webform settings - under the "from" email address - make sure that you use a legit email address or that the from address is spelled correctly. I think this validates through Drupal 7 Webform and because I had not set up the "from" email as a legit address, I kept getting the error for every email recipient I set up to receive webform submissions. After I set up an actual email account and then used this email account in the "From" settings - the error went away.

Louis Bob’s picture

http://drupal.org/project/smtp
=> solved my problem for sending emails

vyasa18’s picture

Issue summary: View changes