well i have a problem just by using mail function.
i downloaded this code from a tutorial website, and save it on
c:\apache\htdocs\testsendemail\index.php
here is the code that i downloaded:
<?php
//Check whether the submission is made
if(isset($hidSubmit)){
//Declarate the necessary variables
$mail_to=$txtEmailto;
$mail_from=$txtEmailfrm;
$mail_sub=$txtSub;
$mail_mesg=$txtMsg;
//Check for success/failure of delivery
if(mail($mail_to,$mail_sub,$mail_mesg,"From:$mail_ from/r/nReply-to:$mail_from"))
echo "<span class='textred'>E-mail has been sent successfully from $mail_sub to $mail_to</span>";
else
echo "<span class='textred'>Failed to send the E-mail from $mail_sub to $mail_to</span>";
}
?>
||||
||||
||||
||||
||||
this is the warning message that i received:
Warning: Failed to Connect in c:\apache\htdocs\testsendemail\index.php on line 13
Failed to send the E-mail from to
what should i do?
sorry i'm a total newbie here, just started to learn how to use php.
tQ in advance