Why are you clearing SentOnBehalfOf if you want it used? You need valid
recipient addresses in both From and SentOnBehalfOf.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"wolle" <(E-Mail Removed)> wrote in message
news:FBF76770-C92A-40E1-B8E8-(E-Mail Removed)...
> Hi everybody,
>
> I' ve got problems, using the the SentonBehalfofNamer-Property programming
> in Outlook-VBA:
>
> Environment:
> Win XP SP2, Office Outlook 2002 SP3
> Win 2000 Server SP4, Exchange 2000 Enterprise
>
> I have several mailboxes with different mail-adresses at the
> Exchange-Server, every mailbox with sending-permission. When I choose a
> different outgoing mailadress than the default mailadress in the from
> field
> of a new email and the VBA-Program clears the SentonBehalfofName-Property
> in
> the Application.ItemSend-Event, the mail reaches the recipients with my
> default mailadress. When the from field in a new email is leaved blank and
> the SentonBehalfofName-Property is set to an different mailbox with
> sending-permission to me, the mail also reaches the recipients with my
> default mailadress and not as i expectet it like <default mailadress> on
> behalf of <choosen mailadress>.
>
> Why does the Exchange-Server ignore the Values that are et to the
> SentonBehalfofName-Property? Thanks for your answers!
> Wolle