Greetings D365 Community,
I am trying to setup Email Parameters in my D365 FO Cloud Environment and while trying to test it I am encountering an error :
And the Parameters I entered are :
The Error I get is
"The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM [MWHPR08CA0036.namprd08.prod."
Any Help Suggestion is appreciated
Hi X.fire,
Would you please check Option1 in this document: docs.microsoft.com/.../how-to-set-up-a-multifunction-device-or-application-to-send-email-using-office-3
Please make sure your user account has a valid O365 mailbox. You can visit https://outlook.office365.com/owa using the account to confirm it.
You can run the following script in Powershell to test whether you can send email using the email address and smtp.office365.com.
$MailFrom = "O365 mail adrress" $MailTo = "to address mail " $Username = "O365 mail adrress" $Password = "psd" $SmtpServer = "smtp.office365.com" $SmtpPort = "587" $MessageSubject = "Test Subject" $Message = New-Object System.Net.Mail.MailMessage $MailFrom,$MailTo $Message.IsBodyHTML = $true $Message.Subject = $MessageSubject $Message.Body = @' <!DOCTYPE html> <html> <head> </head> <body> This is a test message. </body> </html> '@ # Construct the SMTP client object, credentials, and send $Smtp = New-Object Net.Mail.SmtpClient($SmtpServer,$SmtpPort) $Smtp.EnableSsl = $true $Smtp.Credentials = New-Object System.Net.NetworkCredential($Username,$Password) $Smtp.Send($Message)