Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $mail = new PHPMailer();
- $mail->IsSMTP(); // set mailer to
- $mail->Host = "mail.boris.cl"; // specify main and backup server $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = 'contacto@boris.cl'; // SMTP username $mail->Password = "dipu2018?"; // SMTP password
- $mail->From = "contacto@boris.cl"; $mail->FromName = "remitente"; // remitente $mail->AddAddress("bvr@gmail.com", "destinatario"); // destinatario
- $mail->WordWrap = 50; // set word wrap to 50 characters $mail->IsHTML(true); // set email
- $mail->Subject = "Asunto ....."; $mail->Body = "Cuerpo del mensaje";
- if(!$mail->Send()) { echo "Error al enviar.
- "; echo "Mailer Error: " . $mail->ErrorInfo; exit; }
- echo "Mensaje enviado!"; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement