Guest User

Untitled

a guest
Feb 6th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. $mail = new PHPMailer();
  2. $mail->IsSMTP();
  3. $mail->SMTPAuth = true;
  4. $mail->Host = "smtpout.secureserver.net";
  5. $mail->Username = "correo@midominio.com";
  6. $mail->Password = "password";
  7. $mail->SMTPSecure = 'ssl';
  8. $mail->Port = 465;
  9. $mail->setFrom($correo, $nombre);
  10. //$mail->FromName = $nombre;
  11. $mail->AddAddress("correo@midominio.com", "Guillermo Spindola");
  12. $mail->IsHTML(true);
  13. $mail->Subject = $asunto;
  14. $body = $mensaje;
  15. $mail->Body = $body;
  16. $exito = $mail->Send();
Add Comment
Please, Sign In to add comment