Extended MAPI - Creating a "Sent Mail", Setting "From" field

Hi all,

I have a problem with my program that creates a sent email, as if its sitting in your inbox, already read. I have managed to create the actual email, without too many problems. I have set the To:, CC: Subject and HTML Body. The problem I am having is setting the FROM: or "Reply to" field in an outlook message.

Here is what I have tried:

Using message->SetProps, I have tried the following property tags:
PR_REPLY_RECIPIENT_NAMES_W
PR_SENDER_EMAIL_ADDRESS_W
PR_SENDER_NAME_W
PR_SENT_REPRESENTING_EMAIL_ADDRESS_W
PR_SENT_REPRESENTING_NAME_W

Also, I have tried using MAPI_ORIG and adding an address using the lpAddrBook->CreateOneOff function.

All of this produces either a blank from field or the field is filled with ??????????

I was wondering if anybody had any experience in extended mapi and setting the FROM field so that an email can be replied to?

Thanks in advance for your assistance.

Darren
Topic archived. No new replies allowed.