Warning: mail() expects at least 3 parameters, 1 given in /home/siteroot/public_html/sendmail.php on line 57
This is the php code that i created :
<?php
$subject = "Contact";
$name = $_POST['name'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$txtmsg = $_POST['txtmsg'];
$to = "xxxxx@mail.com";
$headers = "From: $email\r\nReply-to: $email\r\n";
$message = "<p>Name : $name<br /><br />Phone Number : $phone<br /><br />Message : $txtmsg</p>";
if (mail("$to,$subject,$message,$headers")){
print "Thanks for contact, i will response your message.";
}else {
print "Your email is not send.";
}
?>


Sign In
Create Account


Back to top









