How to create emails for Inbox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Creating a free program to perform mail merge from 'pegasus' to outlook.

Moving folder tree to outlook works great, but I am unable to figure out how
to 'move' a message.

(Note: I am using c#, but nothing should really differ)

Basically, I parse pegasus mail, retrieve relevant info, and then create an
Outlook.MailItem. I am unable to figure out how to add all the headers into
this mail item. (The Recipients, and subject, and a couple other fields work,
but I can't figure out how to add the other fields...). It appears that
Outlook.MailItem may only be used for sending email?

The other problem is I can not see how to save a Outlook.MailItem to a
non-default folder.

Any ideas?

(Ps. I'll post a link up here with the code once complete)

Thanks,
Richard
 
While scavaging around I have found some unfortuneate news.
According to a couple sources, the Outlook Object Model does not provide
the functionality I require (as mentioned below).

Thus I believe the project will have to be re-coded to bypass the object
model.. I believe I will try using the CDO Com object. (oh joy ;)

Well. It is a major hurdle, and just when I thought 'it' was going to be so
easy.

Wish me luck,
Richard
 
You'll need to use Redemption, not CDO. The code sample at
http://www.outlookcode.com/codedetail.aspx?id=716 shows how to use
Redemption to import a message that's in a file in RFC822 format.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Excellent.
Investigating Redemption shows that it appears to be exactly what I would
like. Will have to investigate licensing issues, but the price is definetly
worth it.

Thank you,
Richard Galka
 
Back
Top