You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The old method continues to be supported, but it looks like they changed to enable tls_verify by default. Under the 2.7 library, there's no problem connecting to gmail.com, but from 3.0 you get a connection error stating that there's a certificate error.
My feeling is that SSL errors are irrelevant for email verification, so tls_verify should always be off, and a quick way to fix this is to add the tls_verify: false option to the SMTP start method, although you would need to check the library version and only do this for versions 3.0+.
The text was updated successfully, but these errors were encountered:
New bug checklist
truemail
to the latest version[BUG] Ruby 3.0 changes the handling of SSL certificate verification which will cause failures when the certificate names don't match the IP addresses.
Bug description
The interface for the Net::SMTP start method changed in 3.0 to
The old method continues to be supported, but it looks like they changed to enable tls_verify by default. Under the 2.7 library, there's no problem connecting to gmail.com, but from 3.0 you get a connection error stating that there's a certificate error.
My feeling is that SSL errors are irrelevant for email verification, so tls_verify should always be off, and a quick way to fix this is to add the tls_verify: false option to the SMTP start method, although you would need to check the library version and only do this for versions 3.0+.
The text was updated successfully, but these errors were encountered: