Tuesday, August 11, 2009

Sending attachments using the "mailto:" protocol

It works with Outlook at least. I think this example job is enough

static void Test_MailTo(Args _args){ str recepient='mbelugin@gmail.com'; str subject = 'Test'; str attachment = @'c:\AUTOEXEC.BAT'; str url = strFmt( 'mailto:%1?Subject=%2&attachments=""%3""', recepient, subject, attachment );; WinApi::shellExecute(url);}

No comments:

How to identify the user that was used to change an object from AOT in AX2012

Get the object name for which we need to track these (user and date&time) information's. Login to SQL Server Management Studio an...