The smtp4dev is a quick tool that can be utilized to isolate issues related to e-mail not sending from AX. As sending e-mail from AX involves SMTP it is best to confirm if the issue is with AX or SMTP. This tool will listen to all SMTP messages and allow you to view them without going through a true SMTP server.
Note: smtp4dev is a simulator and will not send an actual e-mail.
Before starting the testing process it is important to stop SMTP service on the AOS and then install smtp4dev to avoid any port conflict.
Below are steps that explains how to setup smtp4dev for testing e-mail with a batch scenario.
• Make sure you have an SMTP server available.
• The easiest way to do this is, go to http://smtp4dev.codeplex.com/ and download the smtp4dev tool and run it.
• Required setup from AX Client: System Administration > Setup > System > E-mail parameters.
• Enter the SMTP settings to point to your SMTP server.
• Since smtp4dev is installed on the batch AOS server, you just need to enter 127.0.0.1 and port 25.
• Also specify the machine name as the Local computer name.
Now, run any report from the AX client, select print destination as e-mail and use batch processing.
Go to your smtp4dev tool and verify that the e-mail was received.
If you are using smtp4dev tool you can view the e-mail using either the Inspect (or View if you have Outlook installed).
Note: This sends the mail immediately via a direct connection to the SMTP server.
Thanks to the contributor James Wang