Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MAIL_DRIVER=smtp
- MAIL_HOST=smtp.sendgrid.net
- MAIL_PORT=587
- MAIL_USERNAME=yea****
- MAIL_PASSWORD=*********
- MAIL_ENCRYPTION=tls
- MAIL_FROM_NAME="John Smith"
- MAIL_FROM_ADDRESS=from@example.com
- ErrorException (E_WARNING)
- stream_socket_enable_crypto(): Peer certificate CN=`****.****.***' did not match expected CN=`smtp.sendgrid.net'
- /home/myusername/public_html/api/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php
- public function startTLS()
- {
- // STREAM_CRYPTO_METHOD_TLS_CLIENT only allow tls1.0 connections (some php versions)
- // To support modern tls we allow explicit tls1.0, tls1.1, tls1.2
- // Ssl3 and older are not allowed because they are vulnerable
- // @TODO make tls arguments configurable
- 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);
- }
- Arguments
- "stream_socket_enable_crypto(): Peer certificate CN=`****.****.***' did not match expected CN=`smtp.sendgrid.net'"
- Swift_TransportException
- 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
- /home/myusername/public_html/api/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php
- $message = 'Failed to authenticate on SMTP server with username "'.$this->username.'" using '.$count.' possible authenticators.';
- foreach ($errors as $error) {
- $message .= ' Authenticator '.$error[0].' returned '.$error[1].'.';
- }
- throw new Swift_TransportException($message);
- }
- }
Add Comment
Please, Sign In to add comment