mailer
mailer copied to clipboard
HandshakeException on send() <= API 24
Running flutter 3.0.1.
When send()
is called, on older Android APIs <= 24 a HandshakeException is throw.
HandshakeException (HandshakeException: Handshake error in client (OS Error:
CERTIFICATE_VERIFY_FAILED: certificate has expired(handshake.cc:393)))
Exception Line:
@pragma("vm:external-name", "SecureSocket_Handshake")
external int _handshake(SendPort replyPort);
What happens if you enable the option: ignoreBadCertificate
on an StmpServer
instance?
SmtpServer gmail(String username, String password) =>
SmtpServer('smtp.gmail.com', username: username, password: password, ignoreBadCertificate: true);