User-543160537 posted
HI,
I have a button on my webpage, when user clicks on that it will call the outlook app and open new email window with some text. But once it open new outlook window I cannot open inbox or any outlook items, it will block all other things in outlook...
Outlook.Application oApp = new Outlook.Application();
Outlook.MailItem oMsg = (Outlook.MailItem)oApp.CreateItem(Outlook.OlItemType.olMailItem);
htmlbody = MessageBody;
oMsg.HTMLBody = htmlbody;
oMsg.BodyFormat = Outlook.OlBodyFormat.olFormatHTML;
oMsg.Subject = MsgSub;
Outlook.Recipients oRecips = (Outlook.Recipients)oMsg.Recipients;
Outlook.Recipient oRecip = (Outlook.Recipient)oRecips.Add(send_email_to);
oRecip.Resolve();
oMsg.Display(true);