Report printed to e-mail

You can easily send a D365FO report in email just by configuring print destination to Email and setting a few properties. You can do the same from code, where you can also set the body. You must create an instance of SrsReportEMailDataContract class, fill it values and pass it to SRSPrintDestinationSettings.parmEMailContract(). Here is an example: …

Continue reading ‘Report printed to e-mail’ »

How to send emails from code in AX 7

There are many situations when you may want to send an e-mail from Dynamics AX. Let’s see what options we have. First of all, you have to configure the environment. Go to System administration > Setup > Email > Email parameters (or simply search for email parameters in navigation search). The first tab shows email …

Continue reading ‘How to send emails from code in AX 7’ »