Page 1 of 1
Contact Form tag problems
Posted: Wed Dec 13, 2006 6:20 pm
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
Re: Contact Form tag problems
Posted: Wed Dec 13, 2006 6:55 pm
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).