Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In case you are using a gmail account, please make sure to switch ON the Less secure app access. (Navigate to Manage your Google account > Security)

...

Also, if you are using java version 291, you might encounter error “Could not connect to mail server with given credentials, Please validate“ with keyword ‘setMailConnection’.

As per JDK 8u291 Update Release Notes :

TLS 1.0 and 1.1 are versions of the TLS protocol that are no longer considered secure and have been superseded by more secure and modern versions (TLS 1.2 and 1.3)

These versions have now been disabled by default. If you encounter issues, you can, at your own risk, re-enable the versions by removing "TLSv1" and/or "TLSv1.1" from the jdk.tls.disabledAlgorithms security property in the java.security configuration file.

Watch a video :

This video displays how to create a mail connection and use it in a test case.

...