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 - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Custom Form can't be Delivered



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 16th 06, 12:01 AM posted to microsoft.public.outlook.program_forms
Boyd
external usenet poster
 
Posts: 21
Default Custom Form can't be Delivered

I have a custom form which I plan on sending to employees on a weekly
basis. They enter #'s in custom textfields, and send the form on to my
supervisor. Their method of sending the form is by clicking a command
button, which fires the following code:
Item.To = "John Smith (Supervisor)"
Item.Send

For some reason, the message is being returned to them as
undeliverable. I assume this is happening b/c the original email is
coming from my Inbox, and is therefore still "attached" to their form.
I've tried manipulating the From field, but am realizing that this
cannot be done within custom forms.
This issue has nothing to do with the status of my supervisor's Inbox.
I've had a few employees send him test emails (not using my custom
form), which went thru without a problem.

Any ideas how I can resolve this issue? Should I come up with a
different method for the employee to forward the email on to my
supervisor (for instance, instead of using code, try using the Forward
button)? I'm not really sure how to approach this, as I am new to
Outlook programming.

Any help is greatly appreciated.

Thanks,
Boyd

  #2  
Old March 16th 06, 01:13 AM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Custom Form can't be Delivered

Have you considered forwarding the item instead of trying to resend it?

Set fwd = Item.Forward
fwd.To = "John Smith (Supervisor)"
fwd.Send

--
¼á
"Boyd" wrote in message oups.com...
I have a custom form which I plan on sending to employees on a weekly
basis. They enter #'s in custom textfields, and send the form on to my
supervisor. Their method of sending the form is by clicking a command
button, which fires the following code:
Item.To = "John Smith (Supervisor)"
Item.Send

For some reason, the message is being returned to them as
undeliverable. I assume this is happening b/c the original email is
coming from my Inbox, and is therefore still "attached" to their form.
I've tried manipulating the From field, but am realizing that this
cannot be done within custom forms.
This issue has nothing to do with the status of my supervisor's Inbox.
I've had a few employees send him test emails (not using my custom
form), which went thru without a problem.

Any ideas how I can resolve this issue? Should I come up with a
different method for the employee to forward the email on to my
supervisor (for instance, instead of using code, try using the Forward
button)? I'm not really sure how to approach this, as I am new to
Outlook programming.

Any help is greatly appreciated.

Thanks,
Boyd

  #3  
Old March 16th 06, 04:03 PM posted to microsoft.public.outlook.program_forms
Boyd
external usenet poster
 
Posts: 21
Default Custom Form can't be Delivered

Thanks Sue.
Is there a way to hide the "Forward" button from displaying on my form?
I think this may confuse users into clicking "Forward", as opposed to
clicking my command button.

Boyd

  #4  
Old March 16th 06, 04:18 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Custom Form can't be Delivered

You can disable the Forward command on the (Actions) page of your custom form, in design mode.

--
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 oups.com...
Thanks Sue.
Is there a way to hide the "Forward" button from displaying on my form?
I think this may confuse users into clicking "Forward", as opposed to
clicking my command button.

Boyd

  #5  
Old March 16th 06, 03:53 AM posted to microsoft.public.outlook.program_forms
Hollis D. Paul
external usenet poster
 
Posts: 66
Default Custom Form can't be Delivered

In article .com,
Boyd wrote:
Item.To = "John Smith (Supervisor)"
Item.Send

You have to use correctly formed VBScript. That first line seems
completely from wishfull thinking. Search on www.slipstick.com and/or
www.outlook-code.com for a working example of sending a message via
code.

Hollis D. Paul [MVP - Outlook]
Mukilteo, WA USA



  #6  
Old March 16th 06, 04:05 PM posted to microsoft.public.outlook.program_forms
Boyd
external usenet poster
 
Posts: 21
Default Custom Form can't be Delivered

Paul,
I'm not sure what's incorrect about my vbScript.
"Item.To" and "Item.Send" are legitimate commands, are they not?

Boyd

  #7  
Old March 16th 06, 05:38 PM posted to microsoft.public.outlook.program_forms
Hollis D. Paul
external usenet poster
 
Posts: 66
Default Custom Form can't be Delivered

In article . com, Boyd
wrote:
"Item.To"

Not this one. Here is what I did in one of my custom forms:

'Create the message, attachment, and send it
Set myMailItem = AppOutlook.CreateItem(0)
myMailItem.Subject = strSubject
myMailItem.Body = "Message with attachment for Exchange PF and
SharePoint"
Set myRecip = myMailItem.Recipients.Add(strMailAddr)
Set nyAttach = myMailItem.Attachments.Add(strSaveName)
myMailItem.Send


Hollis D. Paul [MVP - Outlook]
Mukilteo, WA USA



  #8  
Old March 16th 06, 04:16 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Custom Form can't be Delivered

Only on a newly created message. They won't work as a way to resend a message that the user received, which is what your code is trying to do.

--
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...
Paul,
I'm not sure what's incorrect about my vbScript.
"Item.To" and "Item.Send" are legitimate commands, are they not?

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
custom form Charlie Outlook - Using Contacts 5 March 8th 06 05:24 PM
Cannot Save Custom Form Dave Hogg Outlook and VBA 3 January 26th 06 07:13 PM
Custom form Melbin Outlook - Using Forms 1 January 24th 06 01:17 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
Cannot programmatically open custom message in custom form ms Outlook - Using Forms 1 January 20th 06 04:01 PM


All times are GMT +1. The time now is 11:29 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.