PC Review


Reply
Thread Tools Rate Thread

Create e new message in InBox

 
 
Emanuele Baglini
Guest
Posts: n/a
 
      20th Oct 2003
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 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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 03 Inbox doesn't match Webmail Inbox Message Count Yoda.Sunscreen@gmail.com Microsoft Outlook Discussion 1 30th Apr 2007 05:21 PM
Move message from Inbox to Temp back to Inbox eseitomer@gmail.com Microsoft Outlook VBA Programming 1 7th Dec 2005 06:09 PM
In organize inbox: create a rule by keyword in body of message =?Utf-8?B?S2VpdGhB?= Microsoft Outlook Discussion 1 29th Nov 2004 07:51 PM
Create e new message in InBox Emanuele Baglini Microsoft Outlook VBA Programming 3 27th Oct 2003 03:42 PM
Create e new message in InBox Emanuele Baglini Microsoft Outlook Interoperability 0 20th Oct 2003 06:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:12 PM.