Guest User

Untitled

a guest
Aug 13th, 2018
1,138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. MAIL_DRIVER=smtp
  2. MAIL_HOST=smtp.sendgrid.net
  3. MAIL_PORT=587
  4. MAIL_USERNAME=yea****
  5. MAIL_PASSWORD=*********
  6. MAIL_ENCRYPTION=tls
  7. MAIL_FROM_NAME="John Smith"
  8. MAIL_FROM_ADDRESS=from@example.com
  9.  
  10. ErrorException (E_WARNING)
  11. stream_socket_enable_crypto(): Peer certificate CN=`****.****.***' did not match expected CN=`smtp.sendgrid.net'
  12.  
  13.  
  14. /home/myusername/public_html/api/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php
  15. public function startTLS()
  16. {
  17. // STREAM_CRYPTO_METHOD_TLS_CLIENT only allow tls1.0 connections (some php versions)
  18. // To support modern tls we allow explicit tls1.0, tls1.1, tls1.2
  19. // Ssl3 and older are not allowed because they are vulnerable
  20. // @TODO make tls arguments configurable
  21. return stream_socket_enable_crypto($this->stream, true, STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT);
  22. }
  23.  
  24. Arguments
  25. "stream_socket_enable_crypto(): Peer certificate CN=`****.****.***' did not match expected CN=`smtp.sendgrid.net'"
  26.  
  27. Swift_TransportException
  28. Failed to authenticate on SMTP server with username "yea****" using 2 possible authenticators. Authenticator LOGIN returned Swift_TransportException: Expected response code 235 but got code "535", with message "535 Incorrect authentication data " in /home/myusername/public_html/a[i/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:456 Stack trace: #0
  29.  
  30. /home/myusername/public_html/api/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php
  31. $message = 'Failed to authenticate on SMTP server with username "'.$this->username.'" using '.$count.' possible authenticators.';
  32. foreach ($errors as $error) {
  33. $message .= ' Authenticator '.$error[0].' returned '.$error[1].'.';
  34. }
  35. throw new Swift_TransportException($message);
  36. }
  37. }
Add Comment
Please, Sign In to add comment