Guest User

Untitled

a guest
Apr 18th, 2018
545
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.59 KB | None | 0 0
  1. <?php
  2.  
  3. require("phpmailer/class.phpmailer.php");
  4. require("phpmailer/class.smtp.php");
  5.  
  6. $mail = new PHPMailer();
  7. $mail->IsSMTP();
  8. $mail->SMTPAuth = true;
  9. $mail->Host = "ssl://smtp.gmail.com";
  10. $mail->Port = 465;
  11. $mail->Username = "patogay@gmail.com";
  12. $mail->Password = "elpassdegmail";
  13.  
  14. $mail->From = "user@domain.com";
  15. $mail->FromName = "RED SOCIAL";
  16. $mail->Subject = "PATO GAY";
  17. $mail->MsgHTML("PATO GAY ");
  18. $mail->AddAddress("slipknot021@hotmail.com", "Destinatario");
  19. $mail->IsHTML(true);
  20.  
  21. if($mail->Send()){
  22. echo 'envio OK';
  23. }else{
  24.  echo 'Error: ' . $mail->ErrorInfo;
  25. }
  26. ?>
Add Comment
Please, Sign In to add comment