Unable to send e-mail using Office 365 e-mail account under Mail Server settings

Unable to send e-mail using Office 365 e-mail account under Mail Server settings

Using Office 365 account under mail server settings. Incoming e-mails are fine but outgoing e-mails are not and comes up with following error. Using the same credentials

Mail sending failed.Authentication failed


Have tried changing the password but didn't work for the account but it doesn't work.

Below are the server settings:

Server Name: smtp.office365.com
Email Type: SMTP with TLS (Port 587)
Username: Same username that entered for incoming mails
Password: Sam Password that I entered for incoming mails

                New to ADSelfService Plus?