I'm getting the following error message when trying to send notifications from scheduled tasks to users. This is after configuring the system to use an office 365 support account to send these emails.
My "Mail Settings" for our site are smtp (Our MS smtp server address which i won't list) on port 587
This server requires an encrypted connection (SSL) is checked
This server requires authentication is checked
The account username and password are indeed correct and when i test email settings i do get a test email in my inbox confirming it works. When running the task again though i get the following message below in the logs and the users never receive the email.
Softerra.Adaxes.CommandPipeline.CommandProcessingException: The following command threw an exception while being executed: Send e-mail notification (Your Bay Equity Domain password will expire in 7 day(s)). ---> 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(SmtpStatusCode statusCode, String response)
at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at #Td.#zj.Send(String toAddress, String subject, String textBody, String htmlBody, String fromAddress, String cc, String bcc)
at Softerra.Adaxes.CommandPipeline.Actions.SendMailNotificationAction.ExecuteAction(IAdmTop targetObject)
at Softerra.Adaxes.CommandPipeline.Actions.ActionBase.Execute(IAdmTop targetObjectArg)
at Softerra.Adaxes.CommandPipeline.Actions.ActionBase.Execute(ICommand command)
--- End of inner exception stack trace ---