Welcome to Lockergnome.com!
HomeHome FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Programmatically changing the message's sender field in MA..

 
   Home -> Office -> Program Add-Ins RSS
Next:  Program Add-Ins: Outlook & Excel  
Author Message
JahMic

External


Since: Jun 01, 2007
Posts: 6



(Msg. 1) Posted: Tue Aug 07, 2007 2:16 am
Post subject: Programmatically changing the message's sender field in MAPI.
Archived from groups: microsoft>public>outlook>program_addins (more info?)

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
Back to top
Login to vote
Dmitry Streblechenko

External


Since: Nov 23, 2003
Posts: 1365



(Msg. 2) Posted: Wed Aug 08, 2007 11:37 am
Post subject: Re: Programmatically changing the message's sender field in MAPI. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.
<plug>Redemption - 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" <jahmic.RemoveThis@gmail.com> wrote in message
news:1186455669.249626.69720@i13g2000prf.googlegroups.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
>
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Program Add-Ins All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 General
 Microsoft Windows XP
 Microsoft Windows Vista
 Microsoft Windows (other)
  Microsoft Office
 Microsoft Office (other)
 Computer Security
 Linux
 Movies


[ Contact us | Terms of Service/Privacy Policy ]