SentOnBehalfOfName-Custom reply form with OnBehalfAddress in combo

N

Nathan

Hello,

I am a newbie in the development of custom forms.
I am currently modifying an existing custom reply form.

The form has some standard field (to,cc,subject) and it has a combo box of
email addresses, that the user can reply on behalf of.

If the user doesn’t have the permission to send on behalf of an email
address(e.g (e-mail address removed)), I get the message:
You do not have the permission to send the message on behalf of the
specified user.

This is understandable. But after this error, even if I choose another email
address from the combo box (e.g (e-mail address removed)), for which he has the delivery
options correctly configured. I still see the error, though the permissions
are correct.

SentOnBehalfOfName is changed on a combo box selection change like below:

<Codesnippet>
Sub Item_CustomPropertyChange(ByVal sName)
If sName = "OnBehalfEntry" Then
Set objListBox=
Item.GetInspector.ModifiedFormPages("Message").Controls("OnBehalfAddressComboBox")
If objListBox.Enabled Then
sSentOnBehalfValue= objListBox.Value
Item.SentOnBehalfOfName = sSentOnBehalfValue
End If
Set objListBox= Nothing
End If
End Sub

If I try to set it in the Item_send function, It seems to be too late and
the change never shows up in the sent email.

Any suggestions/comments?

Thanks,
Nathan
 
S

Sue Mosher [MVP-Outlook]

If OnBehalfEntry is the property that's changing, i.e. the property bound to the combo box, why aren't you using Item.UserProperties("OnBehalfEntry") to return its value directly?

I wonder if it would work better if you changed SentOnBehalfOfName to "" before resetting it.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top