Código PHP:
require ('class/class.phpmailer.php');
require ('class/class.smtp.php');
require ('class/class.pop3.php');
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPAuth = true;
$mail->IsHTML(true);
$mail->Host = "mailnet.telmexchile.cl";
$mail->Username = "telmex";
$mail->Password = "xxxx";
$mail->WordWrap = 72;
$mail->From = $email;
$mail->FromName = $nombre;
$mail->Subject = $asunto;
$mail->Body = $mensaje;
$mail->AddAddress("[email protected]");
if (! $mail->Send())
{
echo 'Message was not sent.';
echo 'Mailer error: ' . $mail->ErrorInfo;
}
else
{
echo "Mail enviado correctamente... Gracias!";
}
?>
estoy ocupando las clases
require ('class/class.phpmailer.php');
require ('class/class.smtp.php');
require ('class/class.pop3.php');