Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. SMTP -> ERROR: Failed to connect to server: Network is unreachable (101)
  2. SMTP Error: Could not connect to SMTP host. Mailer Error: SMTP Error:
  3. Could not connect to SMTP host
  4.  
  5. $mail->IsSMTP();
  6. $mail->SMTPDebug = 1;
  7. $mail->SMTPAuth = true;
  8. $mail->SMTPSecure = "ssl";
  9. $mail->Host = "smtp.gmail.com";
  10. $mail->Port = 465;
  11. $mail->Username = "xxxx@gmail.com";
  12. $mail->Password = "xxxx";
  13.  
  14. $mail->SMTPSecure = "tls"; // no luck
  15.  
  16. $mail->Host = "ssl://smtp.gmail.com"; // no luck
  17.  
  18. $mail->SMTPKeepAlive = true; // no luck
  19.  
  20. $mail->Port = 587; // no luck
  21.  
  22. $mail->Port = 25; // no luck
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement