Create e new message in InBox

E

Emanuele Baglini

Good Morning,
I'm trying to create a message in the inbox:

Microsoft.Office.Interop.Outlook.MAPIFolder OLInBox = (MAPIFolder)
objOLNameSpace.GetDefaultFolder(OlDefaultFolders.olFolderInbox);
Microsoft.Office.Interop.Outlook.MailItem OLMail = (MailItem)
OLInBox.Items.Add(OlItemType.olMailItem);
OLMail.Subject = "TEST";
OLMail.Body = "test test";
OLMail.To = (e-mail address removed);
OLMail.Save();



The problem is that it saves the message in the Draft folder instead the
inbox.
What i can do?

I need also to create a message in wich i set subject, to, from, bady, and
date&time.
Is possible? How I can do that?

Thank You.
Best regards,
Emanuele
 

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

Top