panda1rimshot Posted August 19, 2010 Share Posted August 19, 2010 Hi Guys, I'm having slight problems with my contact form coding. Ok here goes...when I fill in the information on the contact form and press submit the email is sent not a problem, but I get an error message below the sent proceedure displaying. I've checked and doubled checked the code error area's but but just can not see the problem. you can view the screenshots here http://www.bubblegum-web.com/phphelp/screenshot.jpg http://www.bubblegum-web.com/phphelp/contact_php.jpg http://www.bubblegum-web.com/phphelp/class_mailer.jpg any help on this would be great as I proberly cant see for looking..lol. cheers Link to comment https://forums.phpfreaks.com/topic/211157-contact-php-form-errors/ Share on other sites More sharing options...
kallanar Posted August 19, 2010 Share Posted August 19, 2010 I think you are calling the sendMail() function wrong on contact.php line 45, because the fourth argument is required. It should be: $mail = $mailer->sendMail($setup->set['site_email'], $mail_template['subject'], $body, ""); Link to comment https://forums.phpfreaks.com/topic/211157-contact-php-form-errors/#findComment-1101206 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.