Contact Form error
Permalink 1 user found helpful
I got this when trying to submit. No changed to the code made:
Fatal error: Uncaught exception 'Exception' with message 'Unable to send mail' in /home/rliceu10/public_html/concrete/helpers/mail.php:183 Stack trace: #0 /home/rliceu10/public_html/concrete/blocks/form/controller.php(329): MailHelper->sendMail() #1 [internal function]: FormBlockController->action_submit_form() #2 /home/rliceu10/public_html/concrete/models/block.php(262): call_user_func_array(Array, Array) #3 /home/rliceu10/public_html/concrete/startup/process.php(199): Block->passThruBlock('submit_form') #4 /home/rliceu10/public_html/concrete/dispatcher.php(204): require('/home/rliceu10/...') #5 /home/rliceu10/public_html/index.php(2): require('/home/rliceu10/...') #6 {main} thrown in /home/rliceu10/public_html/concrete/helpers/mail.php on line 183
What's the solution?http://www.liceuldeartatulcea.ro/index.php/contact/...
thanks
Fatal error: Uncaught exception 'Exception' with message 'Unable to send mail' in /home/rliceu10/public_html/concrete/helpers/mail.php:183 Stack trace: #0 /home/rliceu10/public_html/concrete/blocks/form/controller.php(329): MailHelper->sendMail() #1 [internal function]: FormBlockController->action_submit_form() #2 /home/rliceu10/public_html/concrete/models/block.php(262): call_user_func_array(Array, Array) #3 /home/rliceu10/public_html/concrete/startup/process.php(199): Block->passThruBlock('submit_form') #4 /home/rliceu10/public_html/concrete/dispatcher.php(204): require('/home/rliceu10/...') #5 /home/rliceu10/public_html/index.php(2): require('/home/rliceu10/...') #6 {main} thrown in /home/rliceu10/public_html/concrete/helpers/mail.php on line 183
What's the solution?http://www.liceuldeartatulcea.ro/index.php/contact/...
thanks
Guys, anyone please?
Are you using the default mail, or SMTP? If you changed it in the Dashboard, just make sure it's working fine and information you provided is correct.
Hello,
I am using the default. Am i missing something?
I am using the default. Am i missing something?
Really not sure. Is there any error_log file (if you're hosting your application) or anything in apache/php error log?
Yes, there is, but the last entry is on [23-Nov-2009 10:43:17]
Yup, eventually I found out the problem. It seems that Concrete5 generates an error when using multiple addresses aaa@aaa.com, bbb@bbb.com.
I hope some one fix this along with a new build. Thnx
I hope some one fix this along with a new build. Thnx
Thanks for posting this. I just had a client who wanted to have posts go to two addresses.
Here's the fix. In concrete/blocks/form/controller.php change the following line:
to:
Here's the fix. In concrete/blocks/form/controller.php change the following line:
$mh->to( $this->recipientEmail );
to:
$emails = explode(',', $this->recipientEmail); foreach ($emails as $email) { $mh->to($email); }
Hey many thanks tbcrowe..........
Its really work...
Its really work...
Thanks tbcrowe!