gan ane bikin form send email kaya begini ni gan :
Spoiler for gambar1 :
terus ini code nya gan
Quote:
<html>
<head>
<title>Kontak</title>
<body>
<p><h1><div align="center">
<p>Contact</p></div></h1></p>
<form name="form1" method="post" action="send_contact.php">
<p>subject
<label for="subject"></label>
<input type="text" name="subject" id="subject">
</p>
<p>Detail
<label for="detail"></label>
<textarea name="detail" id="detail" cols="45" rows="5"></textarea>
</p>
<p> </p>
<p>name
<label for="name"></label>
<input type="text" name="name" id="name">
</p>
<p>emai
<label for="costumer_mail"></label>
<input type="text" name="costumer_mail" id="costumer_mail">
</p>
<p> </p>
<p>
<input type="submit" name="submit" id="submit" value="Submit">
<input type="reset" name="reset" id="reset" value="Submit">
</p>
</form>
<p> </p>
<p> </p>
</body>
</head>
</html>
dan form send_contact.php nya gan
Quote:
<?
//contact subject
$subject ="$subject";
//Details
$message ="$detail";
// mail of sender
$mail_from ="costumer_mail";
//from
$header ="from:$name<mail_from>";
//enter email address
$to ="petrucci005@gmail.com"; // email ane
$send_contact=mail($to, $subject, $message, $header);
//check message sent to your email
if($send_contact){
echo "informasimu keterima";
}
else
{
echo "eror";
}
?>
tapi pas di send muncul keterangan seperti ini gan
Quote:
Warning : mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\AppServ\www\test\send_contact.php on line 14 eror
kenap ya gan ??
help bantu gan