Notifications
Announcements
No record found.
Hi
Is there a way to create an outlook email by code and open it (NOT SENDING)
The sending should be done manually
Hi CRSW,
Please refer to the following article:
community.dynamics.com/.../sending-email-through-outlook-in-dynamics-ax
Hope this helps.
use below code ..
have tested and working fine for me..
static void mail_from_ax(Args _args){ Description255 recipientEmail; Notes emailBody; Description255 subjectText; Filename fileName; SmmOutlookEmail smmOutlookEmail = new SmmOutlookEmail();
recipientEmail = "test@gmail.com"; subjectText = "Test Email"; emailBody = "Hi,\nThis is a test email for Dyanmics AX.\nThanks.";
if (smmOutlookEmail.createMailItem()) { smmOutlookEmail.addEMailRecipient(recipientEmail); smmOutlookEmail.addSubject(subjectText); smmOutlookEmail.addBodyText(emailBody); smmOutlookEmail.sendEMail(smmSaveCopyOfEMail::Yes,NoYes::Yes); } else { error("Could not communicate with Microsoft Outlook Client."); }
}
result :-.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 584 Most Valuable Professional
André Arnaud de Cal... 499 Super User 2025 Season 2
Sohaib Cheema 254 User Group Leader