I have a requirement to send a PDF as attachment in my application. I have been able to create and send mails normally using the SysMailerSMTP class.
I also got a hint on how to go about the dynamic creation and sending of the attachment following this link: https://axexplorer.wordpress.com/2017/07/18/create-an-excel-file-and-send-it-through-e-mail-in-d365-for-operationax-7/
Thanks in anticipation of your response.
*This post is locked for comments