|

send e-mail through code with attachments in AX

1. To send an email through AX, Initially we need to configure the e-mail parameters in the administration module. 2. If you want to configure an email template. That can also be done from the basic module. LanguageId LanguageId; FilePath FilePath; SysMailer mailer; SysEmailAddress ToAddress; SysEmailId EmailId; new InteropPermission(InteropKind::ComInterop).assert(); FilePath = @’//10.0.23.25/AOSPrintShare/TestSalesOrder.pdf; mailer = New…