Create e new message in InBox

  • Thread starter Thread starter Emanuele Baglini
  • Start date Start date
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
 
Back
Top