Testing in Development server
Testing in your development server / Virtual machine allows you to configure a local SMTP server and test the email functionality without sending emails to your customers.
We recommend using as emails are not sent out but just received by this server and held locally. So there is no risk of sending emails out of D365.
Install smtp4dev
Follow the instructions as per to install it on the Virtual machine.
But you should just be able to extract the files into a folder
Configure Email parameters
Configure the SMTP server in System Administration > Setup > Email > Email parameters
Set the Batch email provider to SMTP
Then under SMTP setting set the following values
| Field | Value |
|---|---|
| Outgoing mail server | localhost |
| SMTP port number | 25 |
| SSL/TLS required | No |
| Authentication required | No |
Run smtp4dev
From the extracted folder of smtp4dev run Rnwood.Smtp4dev.exe
This will start a command prompt and starts the SMTP server. You can navigate to the Email inbox using
Any emails now sent out by D365 will be received by this server and you can view them in the inbox using the link above
Run report and test
Once you email any reports from D365 you can view them in the inbox of the smtp4dev server from the URL above.