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

Cristi
 
Cristi replied on at Permalink Reply
Cristi
Guys, anyone please?
okhayat replied on at Permalink Reply
okhayat
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.
Cristi replied on at Permalink Reply
Cristi
Hello,
I am using the default. Am i missing something?
okhayat replied on at Permalink Reply
okhayat
Really not sure. Is there any error_log file (if you're hosting your application) or anything in apache/php error log?
Cristi replied on at Permalink Reply
Cristi
Yes, there is, but the last entry is on [23-Nov-2009 10:43:17]
Cristi replied on at Permalink Reply
Cristi
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
tbcrowe replied on at Permalink Reply
tbcrowe
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:
$mh->to( $this->recipientEmail );

to:
$emails = explode(',', $this->recipientEmail);
foreach ($emails as $email) {
  $mh->to($email);  
}
bhoomi replied on at Permalink Reply
bhoomi
Hey many thanks tbcrowe..........
Its really work...
synlag replied on at Permalink Reply
synlag
Thanks tbcrowe!