outlook 2002 SentOnBehalfOfName

D

David GALLONE

Hi,
I'v an addin wrote in Visual Basic 6.0 using Outlook 2002 under Windows XP.
When fill the From field of a new message, I want to have the email
address (SMTP) of the From field in place of the Name. Is it possible ?

I try to use CDO but i don't have the EntryId because it's a new message.

Thanks in advance,
David GALLONE
 
K

Ken Slovak - [MVP - Outlook]

Save the item so it has an EntryID, then close it and use that EntryID
to get the item as a CDO Message object.
 
D

David Gallone

Hi,

The Addin that I wrote don't send this mail.So I don't want to save it.
Is there another way that save the mail and use CDO or is the unique way
to have the SMTP address of the SentOnBehalfOfName ? (If I save it, I
must delete it after from the Drafts, is it true?).

Thanks,
David GALLONE


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
K

Ken Slovak - [MVP - Outlook]

You won't get an EntryID for an item unless it's saved. You certainly
can delete a saved item, if you do so from CDO it won't even go to the
Deleted Items folder.
 

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