<html>
<body>
<?php
if (isset($_REQUEST['email']))
{
$email = $_REQUEST['email'];
$subject = $_REQUEST['subject'];
$message = $_REQUEST['message'];
mail( "nagarajan22@gmail.com", "Subject: $subject",
$message, "From: $email" );
echo "Thank you for using our mail form";
}
else
{
echo "<form method='post' action='new.php'>
Email: <input name='email' type='text' /><br />
Subject: <input name='subject' type='text' /><br />
Message:<br />
<textarea name='message' rows='15' cols='40'>
</textarea><br />
<input type='submit' />
</form>";
}
?>
</body>
</html>
and another one is
<?php $to = "nagarajan22@gmail.com"; $subject = "Test mail"; $message = "Hello! This is a simple email message."; $from = "y2n_007in@yahoo.com"; $headers = "From: $from"; mail($to, $subject, $message, $headers); echo "Mail Sent."; ?>
i wrote this script refer with internet, but it is not working.....
pls anyone help me...

New Topic/Question
Reply




MultiQuote





|