Form not sending email see logs

Permalink
I have tried changing email settings using regular php send and smtp. I have searched the forums and none seem to have the exact same problem and none similar have any real fix noted. Here are the two error msgs I get:

This is the regular php way to send error:

Mail Exception Occurred. Unable to send mail: Unable to send mail
#0 /development/concrete/libraries/3rdparty/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Sendmail->_sendMail()
#1 /development/concrete/libraries/3rdparty/Zend/Mail.php(973): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#2 /development/concrete/helpers/mail.php(191): Zend_Mail->send(NULL)
#3 /development/concrete/blocks/form/controller.php(335): MailHelper->sendMail()
#4 [internal function]: FormBlockController->action_submit_form()
#5 /development/concrete/models/block.php(276): call_user_func_array(Array, Array)
#6 /development/concrete/startup/process.php(214): Block->passThruBlock('submit_form')
#7 /development/concrete/dispatcher.php(226): require('/development/co...')
#8 /development/index.php(2): require('/development/co...')
#9 {main}
Template Used: block_form_submission
To: plemke@paullemke.net
From: pakigreenl@yahoo.com
Subject: Contact Me Form Submission

This is the smtp way to send error:

Mail Exception Occurred. Unable to send mail: Permission denied
#0 /development/concrete/libraries/3rdparty/Zend/Mail/Protocol/Smtp.php(167): Zend_Mail_Protocol_Abstract->_connect('ssl://smtp.bizm...')
#1 /development/concrete/libraries/3rdparty/Zend/Mail/Transport/Smtp.php(195): Zend_Mail_Protocol_Smtp->connect()
#2 /development/concrete/libraries/3rdparty/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Smtp->_sendMail()
#3 /development/concrete/libraries/3rdparty/Zend/Mail.php(973): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#4 /development/concrete/helpers/mail.php(191): Zend_Mail->send(Object(Zend_Mail_Transport_Smtp))
#5 /development/concrete/blocks/form/controller.php(335): MailHelper->sendMail()
#6 [internal function]: FormBlockController->action_submit_form()
#7 /development/concrete/models/block.php(276): call_user_func_array(Array, Array)
#8 /development/concrete/startup/process.php(214): Block->passThruBlock('submit_form')
#9 /development/concrete/dispatcher.php(226): require('/development/co...')
#10 /development/index.php(2): require('/development/co...')
#11 {main}
Template Used: block_form_submission
To: plemke@paullemke.net
From: pakigreenl@yahoo.com
Subject: Contact Me Form Submission

Both emails I have tried to send to are yahoo accounts. Some one please help. The form block is partially useless if the email notification function won't work. Thanks in advance to any who can solve this.

pakigreenl
 
Brainakazariua replied on at Permalink Reply
Brainakazariua
Have you tried any other mail accounts to send to?

judging from this part of the message "Mail Exception Occurred. Unable to send mail: Permission denied" I'd say the server your site is on has no permissions to send mail or access a mail server to send it from.

This can be because there is something wrong on the server of because the IP adres of the server is blacklisted.
if you have no access to check those things on the server then I auggest you contact your hosting provider about it.
Mireck78 replied on at Permalink Reply
Mireck78
I have exactly the same problem ... HELP PLEASE!

I can't find a starting point to figure out what's going wrong here. I'm running a bunch of C5 sites with the same Provider - without any trouble while sending email notifications by a C5-Form-Block ... just a single site freaks me out and I don't know why?
Mireck78 replied on at Permalink Reply
Mireck78
I have tried this php-Test and got the following error-message:

<?php
 $to = "mymail@googlemail.com";
 $subject = "Test";
 $body    = "Test";
 if (mail($to, $subject, $body)) {
   echo("<p>Message successfully sent!</p>");
  } else {
   echo("<p>Message delivery failed...</p>");
  }
?>


Warning: mail() has been disabled for security reasons in /var/www/xxxxxx/html/themes/xxxxxxx/left_sidebar.php on line 30
Message delivery failed ...
pakigreenl replied on at Permalink Reply
pakigreenl
Quick question...Is yahoo your host? If so let me know I can help.
pakigreenl replied on at Permalink Reply
pakigreenl
If you're dealing with Yahoo, add this to your site.php file.

define('FORM_BLOCK_SENDER_EMAIL', 'no-reply@your_domainname.com');
define('EMAIL_ADDRESS_FORGOT_PASSWORD', 'no-reply@your_domainname.com');
Mireck78 replied on at Permalink Reply
Mireck78
Thanks a lot for the quick response pakigreenl

it is not yahoo - it is flatbooster (a german host/provider) and I'm try to send the mail from this host to googlemail.com (on other sites on the same host it is working ... just tried the same php-test-function without any trouble
Mireck78 replied on at Permalink Reply
Mireck78
with phpinfo() I found a clue for that problem:

<?php
 print phpinfo();
?>


In my case the PHP mail-functions are disabled (look at disabled_functions at the phpinfo() output). I hope my Host/Provider can tell me why.

Does anybody know how to enable this mail-functions for PHP. I guess I need to modify the php.ini for that or?
Mireck78 replied on at Permalink Reply
Mireck78
It has been a PHP configuration problem. The PHP email-functions has been disabled by default and needed to be enabled by the webspace-provider. Now everything is working fine.
Mireck78 replied on at Permalink Reply
Mireck78
:)