Hi,
I am new to AX 2009 and looking for a solution that how we can send the email through AX using Outlook 2010,
I am using the following code, but i want to send dierectly to outbox to send email rather opening it in the outlook.
Please help me to figure out this problem.
static void EmailSendingthroughSmmoutlook(Args _args)
{
CustTable cust;
str number= "1001 test";
SmmOutlookEmail smmOutlookEmail = new SmmOutlookEmail();
str email;
;
if (smmOutlookEmail.createMailItem())
{
smmOutlookEmail.addEMailRecipient('farrukh@gmail.com');
smmOutlookEmail.addSubject("Test Message from Axapta "+number);
smmOutlookEmail.isHTML(true);
smmOutlookEmail.addBodyText('Hi Was just tryin to Send Email through Axapta <B> Test Message from Axapta </B :)');
smmOutlookEmail.sendEMail(smmSaveCopyofEmail::No);
//smmOutlookEmail.sendEMail(smmSaveCopyofEmail::Yes);
}
}
*This post is locked for comments
I have the same question (0)