| Current Path : /var/www/html/mmishra/icdp/ |
| Current File : /var/www/html/mmishra/icdp/mail.php |
<html>
<head>
<title>Sending email using PHP</title>
</head>
<body>
<?php
$to = "mmishra@iiita.ac.in";
$subject = "This is subject";
$message = "This is simple text message.";
$header = "From:mmishra@iiita.ac.in \r\n";
$retval = mail ($to,$subject,$message,$header);
if( $retval == true )
{
echo "Message sent successfully...";
}
else
{
echo "Message could not be sent...";
}
?>
</body>
</html>