Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Set MailItem.Sender Property

Geek News

Set MailItem.Sender Property
"Joshua Ellul" <jellul[ at ]onvol.net> 6/8/2006 11:40:37 AM
Hi There,

How can I set the MailItem Sender property of a MalItem being created by my
application. Perhaps using Redemption but how?

Josh


Re: Set MailItem.Sender Property
"Sue Mosher [MVP-Outlook]" <suemvp[ at ]outlookcode.com> 6/8/2006 11:45:48 AM
First of all, if you looked in the object browser, you'd see that the MailItem object has no Sender property.

Second, Outlook doesn't provide any direct way to change the account or sender for an outgoing message. See
http://www.outlookcode.com/codedetail.aspx?id=889 for various workarounds that might fit your scenario and mail environment.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Joshua Ellul" <jellul[ at ]onvol.net> wrote in message news:uJlnJ9uiGHA.3408[ at ]TK2MSFTNGP05.phx.gbl...
[Quoted Text]
> Hi There,
>
> How can I set the MailItem Sender property of a MalItem being created by my
> application. Perhaps using Redemption but how?
>
> Josh
>
>
Re: Set MailItem.Sender Property
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 6/8/2006 5:30:05 PM
See RDOMail.Sender property -
http://www.dimastr.com/redemption/rdo/RDOMail.htm#properties.
Note that setting it under EX will prevent you from sending the message
unless you have an explicit permission to send on behalf of the given user.
The same applies to the SentOnbehalfOfName property.
See http://www.dimastr.com/redemption/faq.htm#14 for a workaround.

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

"Joshua Ellul" <jellul[ at ]onvol.net> wrote in message
news:uJlnJ9uiGHA.3408[ at ]TK2MSFTNGP05.phx.gbl...
[Quoted Text]
> Hi There,
>
> How can I set the MailItem Sender property of a MalItem being created by
> my application. Perhaps using Redemption but how?
>
> Josh
>


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net