Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
0 like 0 dislike
4.4k views
in SharePoint Server by 16 16 22

I have configured the Outgoing Emails settings in SharePoint 2019 that have diffrent configurations than the previous versions SharePoint 2016 and SharePoint 2013. but now I need to make sure that the SharePoint can send email and my configurations had set properly. How do I test Outgoing Email in SharePoint 2019?


1 Answer

1 like 0 dislike
by 159 198 381
selected by
 
Best answer

How to test Outgoing Email in SharePoint 2019?

To configure and test Outgoing Email in SharePoint 2019, you have to do the following:

  1. Ensure that the SMTP Server Port is opened.
  2. Check the Outgoing Email settings considerations
  3. Provide the correct SMTP Server and Port.
  4. Test Send Email

1) Ensure that the SMTP Server Port is opened.

First, you should make sure that the SMTP port (default is 25 or 587) is opened on your SharePoint Server using the telnet cmdlet

For more details, Please check the below URLs:
- telnet is not recognized as an internal or external command, How to enable it?
- How to Check SQL Server Connectivity between Application Server and Database Server

2 ) Check the Outgoing Email settings considerations

  • The SMTP authentication feature is only available in SharePoint Server 2019.
  • The TLS connection encryption feature is only available in SharePoint Server 2016 or later.
  • You only need to set the application credential key on your servers if you're using the SMTP authentication feature on SharePoint Server 2019.
  • If you're using a Windows account to authenticate to the SMTP server, you can specify the user name using either the Universal Principal Name (UPN) format (user@domain.com) or the NT4 login format (DOMAIN\user). If you're using a non-Windows account to authenticate to the SMTP server, contact your email administrator to determine the correct user name format.
  • The SMTP server must be configured with a valid TLS certificate (matching the SMTP server name entered above) that is trusted by the SharePoint server for the email to be sent via TLS. and in this case, you should set "Use TLS connection encryption" to YES.

3) Provide the correct SMTP Server and Port.

  1. Open SharePoint Central Administration > System Settings > Configure outgoing email settings.
    Configure SharePoint 2019 Outgoing email
  2. Make sure that you have set the Outgoing email settings correctly, especially for the
    • SMTP Server
    • SMTP Port
      Outgoing email setting in SharePoint 2019

      If you will authenticate to the SMTP server before sending an email, you must first set an application credential key on each SharePoint server in the farm before providing the credentials. The application credential key is a separate password that is used to encrypt and decrypt the SMTP password. The application credential key must be identical on all SharePoint servers on the farm. Read more at Set the application credential key on each server in the farm

4) Test Send Email

  1. In your SharePoint Server, Open WindowsPowerShell as Administrator and run the below Send-MailMessage cmdlet with your own inputs.

     Send-MailMessage -To "info@debug.to"  -From "melqassas@outlook.com" -Subject "Email Subject" -Body "Body Text" -BodyAsHtml -SmtpServer 127.0.0.1 -UseSsl
    
  2. Check your inbox, you should receive a new message now if your Outgoing email setting is configured properly.

See Also

If you don’t ask, the answer is always NO!
...