<html>
<body><?php
if (isset($_REQUEST['email'])) {
$to = $_REQUEST['email'] ;
$subject = $_REQUEST['subject'] ;
$message = $_REQUEST['message'] ;
mail( "$to@sms.mtel.com", "$subject",
$message, "||SSSSS||" );
echo "Thank you for using my Testing SMS System.";
}
else
{
echo "<form method='post' action='mail.php'>
mobile number(e.g 7123456789): <input name='email' type='text' /><br />
Name: <input name='subject' type='text' /><br />
Message:<br />
<textarea name='message' rows='15' cols='40'>
</textarea><br />
<input type='submit' />
</form>";
}
?><br>
</body>
</html>