Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: PHPMailer - problem z TLS
Forum PHP.pl > Forum > PHP
Tibod
Witam,

Od wczoraj walczę z konfiguracją wysyłania mailu z mantisa przez phpmailera.

Dostęp przez smtp jest możliwy ponieważ udało mi się skonfigurować poprawnie działającego outlooka dla danego konta. Serwer (prawdopodobnie exchange 2010) wymaga tlsa.

Poniżej zrzut debuga z phpmailera.

  1. Sending emails... ## 001 #### 002 #### 003 ##
  2.  
  3. SMTP -> get_lines(): $data was ""
  4. SMTP -> get_lines(): $str is "220 hostname.local Microsoft ESMTP MAIL Service ready at Wed, 18 Apr 2012 11:07:33 +0300 "
  5. SMTP -> get_lines(): $data is "220 hostname.local Microsoft ESMTP MAIL Service ready at Wed, 18 Apr 2012 11:07:33 +0300 "
  6. SMTP -> FROM SERVER:220 hostname.local Microsoft ESMTP MAIL Service ready at Wed, 18 Apr 2012 11:07:33 +0300
  7. SMTP -> get_lines(): $data was ""
  8. SMTP -> get_lines(): $str is "250-hostname.local Hello [192.168.0.13] "
  9. SMTP -> get_lines(): $data is "250-hostname.local Hello [192.168.0.13] "
  10. SMTP -> get_lines(): $data was "250-hostname.local Hello [192.168.0.13] "
  11. SMTP -> get_lines(): $str is "250-SIZE 10485760 "
  12. SMTP -> get_lines(): $data is "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 "
  13. SMTP -> get_lines(): $data was "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 "
  14. SMTP -> get_lines(): $str is "250-PIPELINING "
  15. SMTP -> get_lines(): $data is "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING "
  16. SMTP -> get_lines(): $data was "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING "
  17. SMTP -> get_lines(): $str is "250-DSN "
  18. SMTP -> get_lines(): $data is "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING 250-DSN "
  19. SMTP -> get_lines(): $data was "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING 250-DSN "
  20. SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES "
  21. SMTP -> get_lines(): $data is "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES "
  22. SMTP -> get_lines(): $data was "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES "
  23. SMTP -> get_lines(): $str is "250-AUTH "
  24. SMTP -> get_lines(): $data is "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH "
  25. SMTP -> get_lines(): $data was "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH "
  26. SMTP -> get_lines(): $str is "250-8BITMIME "
  27. SMTP -> get_lines(): $data is "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH 250-8BITMIME "
  28. SMTP -> get_lines(): $data was "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH 250-8BITMIME "
  29. SMTP -> get_lines(): $str is "250-BINARYMIME "
  30. SMTP -> get_lines(): $data is "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH 250-8BITMIME 250-BINARYMIME "
  31. SMTP -> get_lines(): $data was "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH 250-8BITMIME 250-BINARYMIME "
  32. SMTP -> get_lines(): $str is "250 CHUNKING "
  33. SMTP -> get_lines(): $data is "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH 250-8BITMIME 250-BINARYMIME 250 CHUNKING "
  34. SMTP -> FROM SERVER: 250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH 250-8BITMIME 250-BINARYMIME 250 CHUNKING
  35. SMTP -> get_lines(): $data was ""
  36. SMTP -> get_lines(): $str is "500 5.3.3 Unrecognized command "
  37. SMTP -> get_lines(): $data is "500 5.3.3 Unrecognized command "
  38. SMTP -> FROM SERVER:500 5.3.3 Unrecognized command
  39. SMTP -> ERROR: STARTTLS not accepted from server: 500 5.3.3 Unrecognized command
  40. SMTP -> get_lines(): $data was ""
  41. SMTP -> get_lines(): $str is "250 2.0.0 Resetting "
  42. SMTP -> get_lines(): $data is "250 2.0.0 Resetting "
  43. SMTP -> FROM SERVER:250 2.0.0 Resetting
  44.  
  45. exception 'phpmailerException' with message 'Language string failed to load: tls' in C:\WWW\mantis\library\phpmailer\class.phpmailer.php:804 Stack trace: #0 C:\WWW\mantis\library\phpmailer\class.phpmailer.php(705): PHPMailer->SmtpConnect() #1 C:\WWW\mantis\library\phpmailer\class.phpmailer.php(576): PHPMailer->SmtpSend('Date: Wed, 18 A...', '?Nast??puj??ce ...') #2 C:\WWW\mantis\core\email_api.php(1007): PHPMailer->Send() #3 C:\WWW\mantis\core\email_api.php(848): email_send(Object(EmailData)) #4 C:\WWW\mantis\scripts\send_emails.php(35): email_send_all() #5 {main}
  46. ## 004 ####err2Done.


Powoli kończą mi się kombinacje więc będę wdzięczny za wszelki nakierowujące informacje.

PS. W innym module mantisa korzystam z tej samej skrzynki do pobierania wiadomości i działa ok.
erix
Na pewno z TLS? A nie SSL?
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.