Contact Form tag problems

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
outdoorxtreme1

Contact Form tag problems

Post by outdoorxtreme1 »

Can anyone tell me why I am getting the "Sorry, the message was not sent. The server may be down!" message when trying to send a message using the contact_form tag? Thanks
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Contact Form tag problems

Post by Dee »

You get that message because the call to PHP's mail function in the plugin failed.
This can have more reasons, the smtp server may not be responding, or the server PHP runs on may not be configured correctly.

Try removing the @ in the code (line 91) , it supresses any error messages generated.

Code: Select all

elseif (@mail($to, $subject, $message, $extra)) {
You'll probably get some error (on screen or in the php error log, depending on the server configuration), which may explain why things are not working.

If PHP's mail function is not working on your server, try FeedbackForm or FormBuilder (they use the CMSMailer module to send the mail, which has several options and ways to send the mail).
Last edited by Anonymous on Wed Dec 13, 2006 6:58 pm, edited 1 time in total.
Locked

Return to “CMSMS Core”