A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Custom Form Send Permissions



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 14th 06, 07:08 PM posted to microsoft.public.outlook.program_vba
Boyd
external usenet poster
 
Posts: 21
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

  #2  
Old December 15th 06, 12:25 AM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default 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" wrote in message ups.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

  #3  
Old December 15th 06, 03:50 AM posted to microsoft.public.outlook.program_vba
Boyd
external usenet poster
 
Posts: 21
Default 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

  #4  
Old December 15th 06, 05:03 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Custom Form Send Permissions

It is SentOnBehalfOfName

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

"Boyd" wrote in message oups.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

  #5  
Old December 15th 06, 01:54 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default 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" wrote in message ...
It is SentOnBehalfOfName

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

"Boyd" wrote in message oups.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

  #6  
Old December 15th 06, 07:21 PM posted to microsoft.public.outlook.program_vba
Boyd
external usenet poster
 
Posts: 21
Default 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" wrote in message ...
It is SentOnBehalfOfName

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

"Boyd" wrote in message oups.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


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
automatically send e-mail when closing a custom outlook form Keefo Outlook - Using Forms 1 May 27th 06 03:22 PM
Custom Forms Permissions Rachel Weseman Outlook - Using Forms 1 January 24th 06 11:48 PM
I send an Outlook custom form, but a std. form displays? Sue Mosher [MVP-Outlook] Outlook - Using Forms 0 January 20th 06 08:41 PM
Change Default Send email form to Custom Send email Form Sue Mosher [MVP-Outlook] Outlook - Using Forms 0 January 20th 06 06:33 PM
Unable to send my custom form in Outlook 2003 Hayley Outlook - Using Forms 2 January 20th 06 06:28 PM


All times are GMT +1. The time now is 11:38 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.