Outlook's Inbox Folder

S

Simon Waters

Is it possible to add an email item from an external source to the Outlook
Inbox?
I would like to achieve this programatically not by the Import/Export
dialog.
I am using Outlook 2000 and Delphi.

Thanks in advance.
 
D

Dmitry Streblechenko

Sure:
YouInboxFolder:=Application.Session.GetDefaultFolder(olFolderInbox);
NewMessage:=YouInboxFolder.Items.Add('IPM.Note');
NewMessage.Subject:='test';
NewMessage.Save;

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

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