web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

SMTP server Error

(0) ShareShare
ReportReport
Posted on by 10

 Hi ,

Getting below error while testing email parameter in Dev box (VM). 

System administrator - > Eamil-> Email parameter 

 Email provider  - configured 

SMTP setting - configured 

Error message : 

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 [ME2PR01CA0238.ausprd01.prod.outlook.com]

Note: Same setting are working in UAT server . 

Please suggest on this.

Thanks in advance.

Regards,

GR

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,075 Super User 2025 Season 2 on at

    Hi GR,

    Are the settings the same and did you use the same sender email?

  • WillWU Profile Picture
    22,361 on at

    Hi GReddy,

    Please refer to the DOC:

    https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/fin-ops/organization-administration/configure-email?toc=/dynamics365/commerce/toc.json

    You need to provide the SMTP account Send As and Send On Behalf Of permissions to enable the ability to send Simple Mail Transfer Protocol (SMTP) mail

    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 = @'
    
    
    
    
    
    This is a test message.
    
    
    '@
    
    # 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) 
    

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 551 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans