I have a BIG problem... I get these errormessages when i try my mailscript
Warning: Supplied argument is not a valid MySQL result resource in c:\program\server\web\docs\darkeden\web\langtrue\regga\admin.php on line 60
Warning: Unknown error in c:\program\server\web\docs\darkeden\web\langtrue\regga\admin.php on line 81
Warning: Supplied argument is not a valid MySQL result resource in c:\program\server\web\docs\darkeden\web\langtrue\regga\admin.php on line 89
This is the code i'm using...
if ($var['magiker']==0){
$message = "Hepp hepp.. Du tryckte på nej knappen";
mail("jingxed@hotmail.com", "Mail subject", $message, "Mail from: en@adress.se\nReply-to: en@adress.till");
}
if ($var['magiker']==1){
$message = "Oj oj... nu tror jag vist du tryckte på ja knappen";
mail("jingxed@hotmail.com", "Mail subject", $message, "Mail from: en@adress.se\nReply-to: en@adress.till");
}
This
mail("jingxed@hotmail.com", "Mail subject", $message, "Mail from: en@adress.se\nReply-to: en@adress.till");
is the error message on line 81
I can't figure it out whats wrong... The server is running, Windows 98 with Apache and the Latest PHP can anyone help me out on this... A friend of my said that maby Windows didn't support the mail command... If this is true... how can i get around it?
Thankz
//T-man