This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Send mail operation error ( couldn't connect to the host )

Hi.

I was working on the send mail operation and received the following error,  

{exception=com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.gmail.com, 465; timeout -1;

(All the necessary and required inputs were provided)

What will be the cause for this error and what will be the solution ?

Could anyone please help !!.

  • Suggested Answer

    0  

    Enable TLS, tlsVersion STARTTLS,  connect to port  587, enter your gmail userid as user and app password as password. If you dont have app password created in your google account you need to create that first in your google account security settings.

    Although I am an OpenText employee, I am speaking for myself and not for OpenText.
    If you found this post useful, give it a “Like” or click on "Verify Answer" under the "More" button