Skip to main content

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 smtp4dev 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 smtp4dev 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

FieldValue
Outgoing mail serverlocalhost
SMTP port number25
SSL/TLS requiredNo
Authentication requiredNo

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 http://localhost:5000 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.