Advertisement
Guest User

Untitled

a guest
Jan 2nd, 2017
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.52 KB | None | 0 0
  1. <?php
  2. $mail= new PHPMailer;
  3. $mail->IsSMTP();    
  4. $mail->SMTPDebug = false;      
  5. $mail->SMTPAuth = true;    
  6. $mail->SMTPSecure = 'ssl';
  7. $mail->Host = 'smtp.gmail.com';
  8. $mail->Port = 465;
  9. $mail->Username = 'thaisg.redes@gmail.com';
  10. $mail->Password = 'tnci123';
  11. $mail->SetFrom('thaisg.redes@gmail.com', 'TNCI');
  12. $mail->addAddress('teste@email.com','teste'); //email empresa
  13. $mail->Subject=("SISTEMA DE CHAMADOS TNCI");
  14. $mail->msgHTML("TESTE");
  15. if ($mail->send()){
  16.     $ok = true;
  17. }else{
  18.     $ok = false;
  19. }  
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement