I'm running PHP on XP laptop. The php.ini settings are:
[mail function]
; For Win32 only.
SMTP = mail.socnet.com ; for Win32 only
smtp_port = "25"
; For Win32 only.
sendmail_from = NULL ; for Win32 only
When I use the mail function, I get the message "Server Error"
My code is:
$MsgFrom = (isset($POST["MsgFrom"])) ? $POST["MsgFrom"] : "";
$MsgTo = (isset($POST["MsgTo"])) ? $POST["MsgTo"] : "";
$MsgSubj = (isset($POST["MsgSubj"])) ? $POST["MsgSubj"] : "";
$MsgBody = (isset($POST["MsgBody"])) ? $POST["MsgBody"] : "";
if (!mail($MsgTo, $MsgSubj, $MsgBody)) {
PostMessage ("Error found:".$php_errormsg);
Can anybody help me solve this problem?