Espero esto te pueda ayudar... En el body...este codigo
Código php:
Ver original<body>
<form id="form1" name="form1" method="get" action="upload.php" enctype="multipart/form-data">
<table width="80%" border="0" align="center">
<tr>
<td width="22%">Nombre</td>
<td width="78%"><label>
<input name="txNom" type="text" id="txNom" />
</label></td>
</tr>
<tr>
<td>Apellido</td>
<td><input name="txApe" type="text" id="txApe" /></td>
</tr>
<tr>
<td>Dirección</td>
<td><input name="txDir" type="text" id="txDir" /></td>
</tr>
<tr>
<td>Teléfono</td>
<td><input name="txTel" type="text" id="txTel" /></td>
</tr>
<tr>
<td>E-mail</td>
<td><input name="txMai" type="text" id="txMai" /></td>
</tr>
<tr>
<td colspan="2"><label>
<input type="submit" name="Submit" value="Enviar" />
</label></td>
</tr>
</table>
</form>
</body>
y upload.php... este codigo
Código php:
Ver original<?php
require_once 'class.phpmailer.php';
$nombre=$_GET['txNom'];
$apellido=$_GET['txApe'];
$direccion=$_GET['txDir'];
$telefono=$_GET['txTel'];
$correo=$_GET['txMai'];
$mail = new PHPMailer ();
$mail -> From = "Prueba";
$mail -> FromName = "Prueba";
$mail -> AddAddress = "aqui la direccion mail del destinatario";
$mail -> Subject = "Envio datos";
$mail -> Body = "<p>Nombre: <h3>".$nombre."</h3></p><p>Apellido: <h3>".$apellido."</h3></p><p>Dirección: <h3>".$direccion."</h3></p><p>Teléfono: <h3>".$telefono."</h3></p><p>Correo: <h3>".$correo."</h3></p>";
$mail -> IsHTML (true);
$mail->IsSMTP();
$mail->Host = 'ssl://smtp.gmail.com';
$mail->Port = 465;
$mail->SMTPAuth = true;
$mail->Username = 'aqui la cuenta gmail';
$mail->Password = 'aqui la contraseña de la cuenta gmail';
if(!$mail->Send()) {
echo "Envio exitoso";
}
else
{ echo "No se pudo enviar";
}
?>