I used following information and its working fine. May be it will help u.
Incoming mail Server = imap.gmail.com
Outgoing mail server = smtp.gmail.com
Incoming mail Server port = 993
Outgoing mail server port = 587
Also check your firewall (if any).
I am seeking your kind assistance to create a rule on “Deleted Items” folder. My requirement is, if I delete any mail from any folder, it should send a copy of the deleted mail to a local folder.
OS = Windows 8.1 pro
Office = Office365
Mail = Exchange 2013
Looking forward your response...