Advertisement
Dante0704

Untitled

Jan 16th, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. <?php
  2. function email(){
  3. $email = new PHPMailer();
  4. $email->Charset = 'UTF-8';
  5. $email->SMTPSecure = 'ssl';
  6. $email->isSMTP();
  7. $email->Host = 'localhost:8080';
  8. $email->Port = 465;
  9. $email->SMTPAuth = true;
  10. $email->Username = '';
  11. $email->Password = '';
  12. $email->isHTML();
  13. $email->setFrom ('augustosdc@hotmail.com');
  14. $email->FromNam = 'Augusto';
  15. $email->addAddress('augustosdc@hotmail.com');
  16. $email->Subject = 'Assunto';
  17. $email->AltBody = 'aidngowuengpoasdboargaw eg wega';
  18. $email->msgHTML('email');
  19. if($email->send()){
  20. return TRUE;
  21. }
  22. var_dump($email->ErrorInfo);
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement