open new email message

G

Guest

I want to open, NOT to send, new email message.
I use:
Outlook.Application oApp = new Outlook.Application();
Outlook._NameSpac oNameSpace= oApp.GetNamespace("MAPI");
oNameSpace.Logon(null,null,true,true)
oOutboxFolder =
oNameSpace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderOutbox);
Outlook._MailItem oMailItem =
(Outlook._MailItem)oApp.CreateItem(Outlook.OlItemType.olMailItem);

oMailItem.To = "XXX";
oMailItem.Subject = "XXX";
oMailItem.Body =
oMailItem.SaveSentMessageFolder = oOutboxFolder;

oMailItem.Send();



How can I open the mail message and NOT send it?

Like in java script : mailto:[email protected]'

Moti
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,736
Latest member
zacharyharris

Latest Threads

Top