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

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Setting up Email param...
Finance forum

Setting up Email parameters

(0) ShareShare
ReportReport
Posted on by 30

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 :

t1.PNG

And the Parameters I entered are :

t2.PNG

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

Categories:
I have the same question (0)
  • Suggested answer
    Jie G Profile Picture
    on at
    RE: Setting up Email parameters

    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) 


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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans