PC Review


Reply
Thread Tools Rate Thread

How to add custom composed mail into inbox folder?

 
 
ksskumar
Guest
Posts: n/a
 
      22nd Jan 2004
Hi,

I am creating a addin for outlook in C#.

I collect some mails from inbox folder and store the details like
Sendername, CC,BCC, receivedtime, subject, body, etc., into MS Access
database. Also delete the mail from outlook.

Is it possible to regenerate the mail in the inbox folder using the
database details?

In other words, how to add custom composed mailitem into Inbox folder
?

I think, I can use the Send method of the Outlook object model or CDO
or something to send a mail. But I assume, that mail will go the the
CC and BCC persons also.

Thanks in advance,

regards,
Kumar
 
Reply With Quote
 
 
 
 
Dmitry Streblechenko \(MVP\)
Guest
Posts: n/a
 
      22nd Jan 2004
Outlook Object Model is really not the best tool for that.
Create a message as a PostItem rather than a MailItem (it will be created in
the sent state), then change the MessageClass property to "IPM.Note",
dereference the message, then reopen it using Namespace.GetItemFromID - you
will get a MailItem in the sent state.
Note that quite a few properties are read-only in OOM (such as SentOn), but
they can be set using Extended MAPI/CDO 1.21/Redemption. You will also need
to remove the PR_ICON_INDEX property, otherwise the icon will still be the
same post item icon.

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


"ksskumar" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I am creating a addin for outlook in C#.
>
> I collect some mails from inbox folder and store the details like
> Sendername, CC,BCC, receivedtime, subject, body, etc., into MS Access
> database. Also delete the mail from outlook.
>
> Is it possible to regenerate the mail in the inbox folder using the
> database details?
>
> In other words, how to add custom composed mailitem into Inbox folder
> ?
>
> I think, I can use the Send method of the Outlook object model or CDO
> or something to send a mail. But I assume, that mail will go the the
> CC and BCC persons also.
>
> Thanks in advance,
>
> regards,
> Kumar



 
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
NO INBOX - Incoming mail goes to Recovered Folder after Inbox repair WD Microsoft Outlook Discussion 6 3rd Apr 2005 02:52 PM
NO INBOX - Incoming mail goes to Recovered Folder after Inbox repair WD Microsoft Outlook Discussion 0 22nd Mar 2005 12:14 PM
How to add custom composed mail into inbox folder? ksskumar Microsoft Outlook VBA Programming 1 22nd Jan 2004 06:57 AM
How to add custom composed mail into inbox folder? ksskumar Microsoft Outlook Form Programming 1 22nd Jan 2004 06:57 AM
How to add custom composed mail into inbox folder? ksskumar Microsoft Outlook 1 22nd Jan 2004 06:57 AM


Features
 

Advertising
 

Newsgroups
 


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