PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Custom Form Send Permissions

Reply

Custom Form Send Permissions

 
Thread Tools Rate Thread
Old 14-12-2006, 06:08 PM   #1
Boyd
Guest
 
Posts: n/a
Default Custom Form Send Permissions


I've created a custom Outlook form that is published to the
Organizational Forms Library. The process for which this form is used
is as follows:
1) From within Access, I have code that opens an instance of the
Outlook form, populates fields based on data in my database, and sends
the Outlook form to a recipient.
2) The recipient receives the Outlook form, populates a few text boxes,
then clicks a Submit button. The vbScript behind this button changes
the "To" field to my email address, then sends and closes the form.
3) When I receive the completed Outlook form in my inbox, I import the
form data into my Access database thru code.

For this process to work successfully, I need to add each recipient as
a Delegate to my inbox. Otherwise, the Outlook form is bounced back to
them when they click Submit, with the following message: "You do not
have permission to send to this recipient."

What am I missing here? There has to be a way of sending Outlook
forms, and having them returned, without delegating access to my inbox.

Any help/direction is greatly appreciated.
Thanks,
Boyd

  Reply With Quote
Old 14-12-2006, 11:25 PM   #2
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: Custom Form Send Permissions

The problem is that you're trying to resend a message that already has a From address of your own account. Two possible solutions:

1) Set the value of Item.SendOnBehalfOfName to the current user.

2) Forward the item instead of resending.

--
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

"Boyd" <boydmt@yahoo.com> wrote in message news:1166119704.126652.278600@f1g2000cwa.googlegroups.com...
> I've created a custom Outlook form that is published to the
> Organizational Forms Library. The process for which this form is used
> is as follows:
> 1) From within Access, I have code that opens an instance of the
> Outlook form, populates fields based on data in my database, and sends
> the Outlook form to a recipient.
> 2) The recipient receives the Outlook form, populates a few text boxes,
> then clicks a Submit button. The vbScript behind this button changes
> the "To" field to my email address, then sends and closes the form.
> 3) When I receive the completed Outlook form in my inbox, I import the
> form data into my Access database thru code.
>
> For this process to work successfully, I need to add each recipient as
> a Delegate to my inbox. Otherwise, the Outlook form is bounced back to
> them when they click Submit, with the following message: "You do not
> have permission to send to this recipient."
>
> What am I missing here? There has to be a way of sending Outlook
> forms, and having them returned, without delegating access to my inbox.
>
> Any help/direction is greatly appreciated.
> Thanks,
> Boyd
>

  Reply With Quote
Old 15-12-2006, 02:50 AM   #3
Boyd
Guest
 
Posts: n/a
Default Re: Custom Form Send Permissions

Thanks Sue, I appreciate the prompt reply.
With "Item.SendOnBehalfOfName" behind my submit button, I receive the
following error: "Object doesn't support this property or method".
Any ideas??

Boyd

  Reply With Quote
Old 15-12-2006, 04:03 AM   #4
Dmitry Streblechenko
Guest
 
Posts: n/a
Default Re: Custom Form Send Permissions

It is SentOnBehalfOfName

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

"Boyd" <boydmt@yahoo.com> wrote in message news:1166151035.429996.112450@t46g2000cwa.googlegroups.com...
> Thanks Sue, I appreciate the prompt reply.
> With "Item.SendOnBehalfOfName" behind my submit button, I receive the
> following error: "Object doesn't support this property or method".
> Any ideas??
>
> Boyd
>

  Reply With Quote
Old 15-12-2006, 12:54 PM   #5
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: Custom Form Send Permissions

Thanks! (The object browser is your friend, Boyd.)

--
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

"Dmitry Streblechenko" <dmitry@dimastr.com> wrote in message news:exLzW3$HHHA.5104@TK2MSFTNGP06.phx.gbl...
It is SentOnBehalfOfName

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

"Boyd" <boydmt@yahoo.com> wrote in message news:1166151035.429996.112450@t46g2000cwa.googlegroups.com...
> Thanks Sue, I appreciate the prompt reply.
> With "Item.SendOnBehalfOfName" behind my submit button, I receive the
> following error: "Object doesn't support this property or method".
> Any ideas??
>
> Boyd
>

  Reply With Quote
Old 15-12-2006, 06:21 PM   #6
Boyd
Guest
 
Posts: n/a
Default Re: Custom Form Send Permissions

Thanks Sue and Dmitry!
Using "SentOnBehalfOfName" seems to work perfectly.

Boyd

Sue Mosher [MVP-Outlook] wrote:
> Thanks! (The object browser is your friend, Boyd.)
>
> --
> 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
>
> "Dmitry Streblechenko" <dmitry@dimastr.com> wrote in message news:exLzW3$HHHA.5104@TK2MSFTNGP06.phx.gbl...
> It is SentOnBehalfOfName
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
> "Boyd" <boydmt@yahoo.com> wrote in message news:1166151035.429996.112450@t46g2000cwa.googlegroups.com...
> > Thanks Sue, I appreciate the prompt reply.
> > With "Item.SendOnBehalfOfName" behind my submit button, I receive the
> > following error: "Object doesn't support this property or method".
> > Any ideas??
> >
> > Boyd
> >


  Reply With Quote
Old 29-01-2007, 06:37 PM   #7
Boyd
Guest
 
Posts: n/a
Default Re: Custom Form Send Permissions

I'm running into another snag when using "SentOnBehalfOfName". My
custom form isn't responding to it consistently. My command button
has the following code within the Click event:
Set objPage = Item.GetInspector.ModifiedFormPages("Message")
Item.SentOnBehalfOfName = Item.UserProperties("To")
Item.To = "xyz@abc.com"
Item.Send

I had a user who received an "undeliverable" message when clicking the
button, then tried clicking again, and the form sent without a
problem.
Is it possible that the value in the "To" field (which has resolved to
the users account name, not the email address) isn't being recognized
by the Exchange server? Is it better practice to use the actual
address, instead of the resolved name?

Any help is appreciated.
Thanks, Boyd


On Dec 15 2006, 1:21 pm, "Boyd" <boy...@yahoo.com> wrote:
> Thanks Sue and Dmitry!
> Using "SentOnBehalfOfName" seems to work perfectly.
>
> Boyd
>
>
>
> Sue Mosher [MVP-Outlook] wrote:
> > Thanks! (The object browser is your friend,Boyd.)

>
> > --
> > 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

>
> > "Dmitry Streblechenko" <dmi...@dimastr.com> wrote in messagenews:exLzW3$HHHA.5104@TK2MSFTNGP06.phx.gbl...
> > It isSentOnBehalfOfName

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

>
> > "Boyd" <boy...@yahoo.com> wrote in messagenews:1166151035.429996.112450@t46g2000cwa.googlegroups.com...
> > > Thanks Sue, I appreciate the prompt reply.
> > > With "Item.SendOnBehalfOfName" behind my submit button, I receive the
> > > following error: "Object doesn't support this property or method".
> > > Any ideas??

>
> > >Boyd- Hide quoted text -- Show quoted text -


  Reply With Quote
Old 29-01-2007, 08:19 PM   #8
Dmitry Streblechenko
Guest
 
Posts: n/a
Default Re: Custom Form Send Permissions

If you are using a name, you indeed can get error, even if the name come
from GAL due to ambiguity: e.g. if you specify "admin" and you have users
named "admin" and "administrator", you will get an ambiguous error.
Addresses are definitely better.

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

"Boyd" <boydmt@yahoo.com> wrote in message
news:1170095832.940260.104430@m58g2000cwm.googlegroups.com...
> I'm running into another snag when using "SentOnBehalfOfName". My
> custom form isn't responding to it consistently. My command button
> has the following code within the Click event:
> Set objPage = Item.GetInspector.ModifiedFormPages("Message")
> Item.SentOnBehalfOfName = Item.UserProperties("To")
> Item.To = "xyz@abc.com"
> Item.Send
>
> I had a user who received an "undeliverable" message when clicking the
> button, then tried clicking again, and the form sent without a
> problem.
> Is it possible that the value in the "To" field (which has resolved to
> the users account name, not the email address) isn't being recognized
> by the Exchange server? Is it better practice to use the actual
> address, instead of the resolved name?
>
> Any help is appreciated.
> Thanks, Boyd
>
>
> On Dec 15 2006, 1:21 pm, "Boyd" <boy...@yahoo.com> wrote:
>> Thanks Sue and Dmitry!
>> Using "SentOnBehalfOfName" seems to work perfectly.
>>
>> Boyd
>>
>>
>>
>> Sue Mosher [MVP-Outlook] wrote:
>> > Thanks! (The object browser is your friend,Boyd.)

>>
>> > --
>> > 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

>>
>> > "Dmitry Streblechenko" <dmi...@dimastr.com> wrote in
>> > messagenews:exLzW3$HHHA.5104@TK2MSFTNGP06.phx.gbl...
>> > It isSentOnBehalfOfName

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

>>
>> > "Boyd" <boy...@yahoo.com> wrote in
>> > messagenews:1166151035.429996.112450@t46g2000cwa.googlegroups.com...
>> > > Thanks Sue, I appreciate the prompt reply.
>> > > With "Item.SendOnBehalfOfName" behind my submit button, I receive the
>> > > following error: "Object doesn't support this property or method".
>> > > Any ideas??

>>
>> > >Boyd- Hide quoted text -- Show quoted text -

>



  Reply With Quote
Old 30-01-2007, 06:58 PM   #9
Boyd
Guest
 
Posts: n/a
Default Re: Custom Form Send Permissions

Thanks Dmitry. I changed the "SentOnBehalfOfName" to the user's email
address, instead of the outlook account name, but the user is still
receiving the returned "undeliverable" message.

Does anyone have an example using "SentOnBehalfOfName" that works for
them? I really want to avoid adding every possible user as a delegate
to my Inbox.

Thanks,
Boyd

On Jan 29, 3:19 pm, "Dmitry Streblechenko" <dmi...@dimastr.com> wrote:
> If you are using a name, you indeed can get error, even if the name come
> from GAL due to ambiguity: e.g. if you specify "admin" and you have users
> named "admin" and "administrator", you will get an ambiguous error.
> Addresses are definitely better.
>
> Dmitry Streblechenko (MVP)http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
> "Boyd" <boy...@yahoo.com> wrote in messagenews:1170095832.940260.104430@m58g2000cwm.googlegroups.com...
>
>
>
> > I'm running into another snag when using "SentOnBehalfOfName". My
> > custom form isn't responding to it consistently. My command button
> > has the following code within the Click event:
> > Set objPage = Item.GetInspector.ModifiedFormPages("Message")
> > Item.SentOnBehalfOfName = Item.UserProperties("To")
> > Item.To = "x...@abc.com"
> > Item.Send

>
> > I had a user who received an "undeliverable" message when clicking the
> > button, then tried clicking again, and the form sent without a
> > problem.
> > Is it possible that the value in the "To" field (which has resolved to
> > the users account name, not the email address) isn't being recognized
> > by the Exchange server? Is it better practice to use the actual
> > address, instead of the resolved name?

>
> > Any help is appreciated.
> > Thanks, Boyd

>
> > On Dec 15 2006, 1:21 pm, "Boyd" <boy...@yahoo.com> wrote:
> >> Thanks Sue and Dmitry!
> >> Using "SentOnBehalfOfName" seems to work perfectly.

>
> >> Boyd

>
> >> Sue Mosher [MVP-Outlook] wrote:
> >> > Thanks! (The object browser is your friend,Boyd.)

>
> >> > --
> >> > 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

>
> >> > "Dmitry Streblechenko" <dmi...@dimastr.com> wrote in
> >> > messagenews:exLzW3$HHHA.5104@TK2MSFTNGP06.phx.gbl...
> >> > It isSentOnBehalfOfName

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

>
> >> > "Boyd" <boy...@yahoo.com> wrote in
> >> > messagenews:1166151035.429996.112450@t46g2000cwa.googlegroups.com...
> >> > > Thanks Sue, I appreciate the prompt reply.
> >> > > With "Item.SendOnBehalfOfName" behind my submit button, I receive the
> >> > > following error: "Object doesn't support this property or method".
> >> > > Any ideas??

>
> >> > >Boyd- Hide quoted text -- Show quoted text -- Hide quoted text -- Show quoted text -


  Reply With Quote
Old 30-01-2007, 08:19 PM   #10
Dmitry Streblechenko
Guest
 
Posts: n/a
Default Re: Custom Form Send Permissions

What exactly dod you mean by "undeliverable"? What is thee exact error
message?

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

"Boyd" <boydmt@yahoo.com> wrote in message
news:1170183491.681628.122890@m58g2000cwm.googlegroups.com...
> Thanks Dmitry. I changed the "SentOnBehalfOfName" to the user's email
> address, instead of the outlook account name, but the user is still
> receiving the returned "undeliverable" message.
>
> Does anyone have an example using "SentOnBehalfOfName" that works for
> them? I really want to avoid adding every possible user as a delegate
> to my Inbox.
>
> Thanks,
> Boyd
>
> On Jan 29, 3:19 pm, "Dmitry Streblechenko" <dmi...@dimastr.com> wrote:
>> If you are using a name, you indeed can get error, even if the name come
>> from GAL due to ambiguity: e.g. if you specify "admin" and you have users
>> named "admin" and "administrator", you will get an ambiguous error.
>> Addresses are definitely better.
>>
>> Dmitry Streblechenko (MVP)http://www.dimastr.com/
>> OutlookSpy - Outlook, CDO
>> and MAPI Developer Tool
>>
>> "Boyd" <boy...@yahoo.com> wrote in
>> messagenews:1170095832.940260.104430@m58g2000cwm.googlegroups.com...
>>
>>
>>
>> > I'm running into another snag when using "SentOnBehalfOfName". My
>> > custom form isn't responding to it consistently. My command button
>> > has the following code within the Click event:
>> > Set objPage = Item.GetInspector.ModifiedFormPages("Message")
>> > Item.SentOnBehalfOfName = Item.UserProperties("To")
>> > Item.To = "x...@abc.com"
>> > Item.Send

>>
>> > I had a user who received an "undeliverable" message when clicking the
>> > button, then tried clicking again, and the form sent without a
>> > problem.
>> > Is it possible that the value in the "To" field (which has resolved to
>> > the users account name, not the email address) isn't being recognized
>> > by the Exchange server? Is it better practice to use the actual
>> > address, instead of the resolved name?

>>
>> > Any help is appreciated.
>> > Thanks, Boyd

>>
>> > On Dec 15 2006, 1:21 pm, "Boyd" <boy...@yahoo.com> wrote:
>> >> Thanks Sue and Dmitry!
>> >> Using "SentOnBehalfOfName" seems to work perfectly.

>>
>> >> Boyd

>>
>> >> Sue Mosher [MVP-Outlook] wrote:
>> >> > Thanks! (The object browser is your friend,Boyd.)

>>
>> >> > --
>> >> > 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

>>
>> >> > "Dmitry Streblechenko" <dmi...@dimastr.com> wrote in
>> >> > messagenews:exLzW3$HHHA.5104@TK2MSFTNGP06.phx.gbl...
>> >> > It isSentOnBehalfOfName

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

>>
>> >> > "Boyd" <boy...@yahoo.com> wrote in
>> >> > messagenews:1166151035.429996.112450@t46g2000cwa.googlegroups.com...
>> >> > > Thanks Sue, I appreciate the prompt reply.
>> >> > > With "Item.SendOnBehalfOfName" behind my submit button, I receive
>> >> > > the
>> >> > > following error: "Object doesn't support this property or method".
>> >> > > Any ideas??

>>
>> >> > >Boyd- Hide quoted text -- Show quoted text -- Hide quoted text --
>> >> > >Show quoted text -

>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off