I am using Office365 web app SMTP to send email from Asp.Net but Its always throwing following error!System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.1 Client was not authenticated at System.Net.Mail.MailCommand.CheckResponse The web.config is given below - with username & password changed \[code\]<network enableSsl="true" host="pod51007.outlook.com" userName="XXXX" password="XXXXX" port="587" defaultCredentials="false" />\[/code\]Any help is appreciated