include("inc/phpMailer/class.smtp.php");
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPAuth = true;
$mail->SMTPSecure = "ssl";
$mail->Host = "smtp.gmail.com";
$mail->Port = 465;
$mail->Username = "bullsize@gmail.com";
$mail->Password = "ahahahah xD!!!";
$mail->From = "bullsize@gmail.com";
$mail->FromName = "Felipe";
$mail->Subject = "contacto";
$mail->AltBody = "Hola, este es el form de contacto.";
$mail->MsgHTML("Hola, este es el form de contacto..");
$mail->AddAddress("ftoro@andain.cl", "Destinatario");
$mail->IsHTML(true);
if(!$mail->Send()) {
echo "Error: " . $mail->ErrorInfo;
} else {
echo '
Mensaje enviado correctamente
';}
No hay comentarios.:
Publicar un comentario