Versions Compared

Key

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

...

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 :
1- Click on the Settings icon on your mailbox
2- Click on Settings
3- Click on Forward and POP/IMAP tab
4- Click on Learn More Link (under IMAP access section)

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’.

...