Tema: phpmailer?
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/05/2004, 05:01
zpl
 
Fecha de Ingreso: marzo-2004
Mensajes: 91
Antigüedad: 20 años, 1 mes
Puntos: 1
Esto es lo que tengo puesto en la pagina:

require("class.phpmailer.php");

$mail = new PHPMailer();

$mail->IsSMTP(); // send via SMTP
$mail->Host = "smtp.mapainformatica.com"; // SMTP servers
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "*****"; // SMTP username
$mail->Password = "*****"; // SMTP password

$mail->From = "[email protected]";
$mail->FromName = "MAPA";
$mail->AddAddress("$row4[email]","$row4[Contacto]");

$mail->AddReplyTo("[email protected]","Enviado" );



$mail->Subject = "Here is the subject";
$mail->Body = "This is the <b>HTML body</b>";
$mail->AltBody = "This is the text-only body";

if(!$mail->Send())
{
echo "Message was not sent <p>";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}

echo "Message has been sent";
?>