...
Info |
---|
If you are trying to configure your Gmail account, you can find the IP-Address/Host Name, Port, Security Type information by following either of the two ways : Following the below steps : Link : https://support.google.com/mail/answer/7126229?hl=en&visit_id=637256414356189534-3292911035&rd=2 If you are still unable to access your account, please follow the link : https://support.google.com/a/answer/6260879?hl=en |
In case If you are using a gmail accountOffice365, please make sure to switch ON the Less secure app access. (Navigate to Manage your Google account > Security)
...
use the below details :
IMAP | Host Name : outlook.office365.com Port : Most use 143 or 993 Encryption method : SSL |
SMTP | Host Name : smtp.office365.com Port : 587 Encryption method : SSL |
POP3 | Host Name : outlook.office365.com Port : 110 or 995 Encryption method : SSL |
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’.
...