View Single Post
  #2  
Old August 8th 07, 07:37 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Programmatically changing the message's sender field in MAPI.

Outlook 2007 - MailItem.SendUsingAccount property
MAPI - two named properties
(http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/8580001E
and
http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/8581001E)
that contain the id and name of the account.
plugRedemption - RDOMail.Account property (see
http://www.dimastr.com/redemption/rdo/RDOMail.htm) /plug

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"JahMic" wrote in message
ups.com...
Using outlook as a user, there are 2 ways to change the 'from' field,
one is actually choosing or typing in address in the 'from' line, but
that outputs a 'sent on behalf of' type of message. Using the
Accounts drop-down changes the low-level fields. The latter is
functionality I want.

Is it actually as easy as changing the PR_SENDER properties? Or do I
have to actually login into that account and send it from there? If
so, how can I take all my existing properties with me?

Of course, if there is a simpler way of doing this using OOM (without
security warnings), I would like to know about that too.

Thanks in advance,

J



Ads