<?php
if(isset($_POST['cargar'])) {
$asunto = $_POST['asunto'];
$sms = $_POST['mensaje'];
$mail = mail(echo "se envio correctamente el mail"; } else {
echo "no se pudo enviar el mail";
}
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>MAIL MERCURY</title>
</head>
<body>
<FORM action="mail.php" method="post">
<table width="30%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td>Remitente</td>
<td><input type="text" name="remitente"></td>
</tr>
<tr>
<td>Asunto</td>
<td><input type="text" name="asunto"></td>
</tr>
<tr>
<td>Mensaje</td>
<td><textarea name="mensaje" cols="15" width="60"> </textarea></td></td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="cargar" value="enviar"></td>
</tr>
</table>
</FORM>
</body>
</html>