Hi Diane, Thank you for your reply.
I don't have 2-factor authentication enabled on my office 365 mailbox
For incoming server settings:
IMAP server: outlook.office.365.com
Port: 993
Security Type: SSL/TLS
For Outgoing server settings:
SMTPserver: outlook.office.365.com (gmail default) but I also tried smtp.office365.com (as it shows in my setting account)
Port: 587
Security Type: STARTTLS
Error message: Username or password is incorrect
Thank you for your advice!