Sometimes happen that SysMailer class (using CDO) is not the right solution for sending mails with attachments. There is a little sample of X++ Job that is using System.Net.Mail namespace to achieve same.
Tag: mail
Webdevelopment
Accessing SMTP Mail Settings defined in Web.Config File Programmatically – KaushaL.NET
by Bo Jensen •
I needed to read my SMTP email settings defined under system.net section in my web.config file. In order to use eNewsLetter and other SiteAdmin CMS modules that sending email notifications; you can setup your web.config to defind SMTP services settings.