There are more than one way to send emails through Microsoft Dynamics AX system, using X++ code. The most recommended way is to use the standard mail mechanism built in the system. That way copies of any email you send will be save in the Email sending status form (based on table SysOutgoingEmailTable ) and you will be able to monitor and see status of sent emails: (Administration -> Periodic -> E-mail processing -> Email sending status; Form: SysOutgoingEmailTable) This mechanism based on a system table that contain the emails, and a batch job that scan that table and send the emails, one by one (with retries and status controlling). This technique is very simple to use and therefore it has some disadvantages; you cannot add attachments or use advanced email properties (cc, bcc, priority flag, etc). To use this mechanism, first you have to make sure you a SMTP server configured and running. Go to Administration -> Setup -> E-mail parameters and fill the required se...