Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
quicksketchThis 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.
Comment #2
Octothorn-1 CreditAttribution: Octothorn-1 commentedActually, 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.
Comment #3
najibx CreditAttribution: najibx commentedwhat 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.
Comment #4
quicksketchLooks like this is caused by #332629: hook_mail should set $message['body'] to an array.
Comment #5
steffenjung CreditAttribution: steffenjung commentedI´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
Comment #6
steffenjung CreditAttribution: steffenjung commentedThe 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)
Comment #7
chrisbeaman CreditAttribution: chrisbeaman commentedFor 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.
Comment #8
SirClickalotI 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
Comment #9
JoshPSU CreditAttribution: JoshPSU commentedI 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.
Comment #10
RichieRich CreditAttribution: RichieRich commentedI'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.
Comment #11
matsta CreditAttribution: matsta commentedSolution from post #9 worked for me. I had a conditional recipient option selected that was not an email address.
Thanks.
Comment #12
najibx CreditAttribution: najibx commentedyep, non email address conditional recipient option were selected.
Comment #14
Whackler CreditAttribution: Whackler commentedFew 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...
Comment #15
cmsproducer CreditAttribution: cmsproducer commentedIn 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).
Comment #16
getsby CreditAttribution: getsby commentedIn 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.
Comment #17
AimAdvantage CreditAttribution: AimAdvantage commentedAlso- 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.
Comment #18
Louis Bob CreditAttribution: Louis Bob commentedhttp://drupal.org/project/smtp
=> solved my problem for sending emails
Comment #19
vyasa18 CreditAttribution: vyasa18 commented