Ver Mensaje Individual
  #3 (permalink)  
Antiguo 10/07/2013, 02:47
jordi45
 
Fecha de Ingreso: octubre-2008
Mensajes: 168
Antigüedad: 15 años, 7 meses
Puntos: 2
Respuesta: Enviar correo con la funcion mail php en GMAIL

Código:
$nick= $_POST['nick'];
$mail = $_POST['correo'];
$password = $_POST['password'];

$headers = 'MIME-Version: 1.1' . "\r\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
$headers .= 'From: dominio' . "\r\n"; 
$mensaje= "Gracias $nick, por registrarte en dominio.
<p>Sus datos de acceso:</p>
<strong>Nick: $nick</strong><br>
<strong>Contraseña: $password</strong>;
$para="$mail";
$subject= " registro de $nick ";

mail ($para, $subject, $mensaje, $headers);