outlook 2002 SentOnBehalfOfName

  • Thread starter Thread starter David GALLONE
  • Start date Start date
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
 
Save the item so it has an EntryID, then close it and use that EntryID
to get the item as a CDO Message object.
 
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
 
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.
 
Back
Top