Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <?php
  2. require 'http://insidetv.net.br/PHPMailer/class.phpmailer.php';
  3.  
  4. $email = new PHPMailer();
  5.  
  6. $email -> IsSMTP();
  7. $email -> Mailer = 'smtp';
  8. $email -> SMTPAuth = true;
  9. $email -> Host = 'smtp.gmail.com';
  10. $email -> Port = 465;
  11. $email -> SMTPSecure = 'ssl';
  12. $email -> CharSet = 'UTF-8';
  13.  
  14. $email -> Username = "insidetvoficial@gmail.com";
  15. $email -> Password = "********";
  16.  
  17. $email -> IsHTML(true);
  18. $email -> SingleTo = true;
  19.  
  20. $email -> From = "insidetvoficial@gmail.com";
  21. $email -> FromName = "InsideTv";
  22.  
  23. $email -> addAddress("email@hotmail.com");
  24.  
  25. $email -> Subject = "teste";
  26. $email -> Body = "teste";
  27. $email -> send();
  28. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement