SentOnBehalfOfName property is only applicable if you are using an Exchange server. Is this the case?
Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool
"Oliver Giesen" <NO.ogware.SPAM[ at ]gmx.ALLOWED.net.INVALID> wrote in message news:xn0epoz08cufxy001[ at ]news.microsoft.com...
[Quoted Text] > Hi! > > I'm trying to set the sender address of an outgoing message from within > a COM addin (written in Delphi 7). I tried doing this from the item's > Send event handler but it seems that is already too late for this > particular property... The strange thing is that I can modify other > properties like the Subject and Body without problems. I can even see > that the new sender address is being entered correctly into the > inspector's From field if I place Message Boxes in my code to pause the > execution but nevertheless, when the message arrives at the recipient > it does not use the intended sender address. Is there anything else > that needs to be done in order to ultimately apply the sender address > (I already tried re-resolving the recipients and saving the item but > without success) or is the Item Send event really too late for this > kind of modification? If so, when would be a better point in time? BTW: > hooking the Click event on the Send button is no solution for me either > as I want my addin to kick in also when a message is being sent by > pressing Ctrl+Enter . > Current testing environment is Outlook 2003. > > Any ideas? > > Cheers, > > Oliver
|