-
- 1,495 Posts
any preview on this one? Like a screenshot or live page that we can look at?
Thanks
-
- 1,495 Posts
Do this for me please.
GO to your control panel, click ’Administration’ menu at the top of your control panel usually, and click ’View system info’. On the right panel, click ’View’ link on ’phpInfo()’.
Now search for the word ’safe_mode’ inside your phpinfo page, and see the parameter, is it being set on or off. If it’s off, then it might be one of the reason why this thing is not working.
Please report back.
Sincerely,
-
- 48 Posts
Sounds like something wrong with the mail() command
Extra characters in the headers or subject line can stop the mail from sending.
Go to snippets - > contactform and look for the following block of code:
if (mail($to, $subject, $body, $headers)) {
$SendMail .= "<p class=\"$successClass\">$success</p>";
$SendMail .= ($debug) ? "<p>$to\n$headers\n$subject\n$body</p>" : ’’;
$from="";
$from_email="";
$message="";
} else {
$SendMail .= "<p class=’$failClass’>$generalFail</p>";
$send = "false";
Just after the else {
print out the $to, $subject, $headers lines to see what these values are.
__________________
example:
else {
$SendMail .= "<!-- to: $to -->\n<!-- subject: $subject -->\n<!-- headers: $headers -->\n<!-- body: $body -->\n";
$SendMail .= "<p class=’$failClass’>$generalFail</p>";
$send = "false";
}
__________________
Note: this will appear in source code rather than page, remove the <!-- --> to display normally
Also, are you on linux or windows server?, does it use smtp for mail?
SMTP was developed long before Windows even existed (1980-1982). Linux certainly uses it.
Sendmail (as well as all other mail transfer agents such as Postfix) is based on it, and is still the most popular mail agent in the UNIX world.
http://www.tcpipguide.com/free/t_SMTPOverviewHistoryandStandards.htm