how to send a custome form?

H

HK

hi all,
i have setup a custome form to work between 2 exchange servers. all users
lunch the custome form from server1 and send it to a public folder and this
public folder sends the second server a notification (email) saying there is
a form sitting in the public folder in server1 go and see it. so i have to
login to the first server and go to that public folder and see the form.
is there any way when user hits the submit button the custome form gets
transafered to the second server instead of going to a public folder?
I am using the following:

'Create and send message to server2 to let them know that there is a new
help request.

Set MyNameSpace = Application.GetNameSpace("MAPI")

Set BuildFolder = MyNameSpace.Folders("Public Folders")

Set AllPublicFolders = BuildFolder.Folders("All Public Folders")

Set HelpDeskDatabase = AllPublicFolders.Folders("Requests")

Set EmailNotification =
HelpDeskDatabase.Items.Add("IPM.Note.EmailNotification")

EmailNotification.To = "(e-mail address removed)"

EmailNotification.Subject = "New Help Request at Server 1"

EmailNotification.Send



thanks for your help
 
H

Hollis D. Paul

I am using the following:

'Create and send message to server2 to let them know that there is a new
help request.

Set MyNameSpace = Application.GetNameSpace("MAPI")
In this code, you are using the default application, which is connected to
server 1 and you will always get connected to the public folders of that
server. What you need to do, when you create your help desk form, is
create an application object that is logged into Server 2 (not sure I have
kept the servers straight), and create the message in its public info
store. Not having two exchange servers, I have never done this, but there
has always been the password options that allow you to connect
automatically, so I am sure that you can also specify the server in
addition.

Hollis D. Paul [MVP - Outlook]
(e-mail address removed)
Using Virtual Access 4.52 build 277 (32-bit), Windows 2000 build 2195
http://search.support.microsoft.com/kb/c.asp?FR=0&SD=TECH&LN=EN-US

Mukilteo, WA USA
 
H

hkadhim

thanks Hollis for your reply,
i created the object like this:
Set myOlApp = CreateObject("Outlook.Application")

Set MyNameSpace = myOlApp.GetNameSpace("MAPI")

.....

but still when i open it on server 2 it opens as a normal email not as a
form. Is there any examples on how to accomplish this?

thanks a lot

Hollis D. Paul said:
I am using the following:

'Create and send message to server2 to let them know that there is a new
help request.

Set MyNameSpace = Application.GetNameSpace("MAPI")
In this code, you are using the default application, which is connected to
server 1 and you will always get connected to the public folders of that
server. What you need to do, when you create your help desk form, is
create an application object that is logged into Server 2 (not sure I have
kept the servers straight), and create the message in its public info
store. Not having two exchange servers, I have never done this, but there
has always been the password options that allow you to connect
automatically, so I am sure that you can also specify the server in
addition.

Hollis D. Paul [MVP - Outlook]
(e-mail address removed)
Using Virtual Access 4.52 build 277 (32-bit), Windows 2000 build 2195
http://search.support.microsoft.com/kb/c.asp?FR=0&SD=TECH&LN=EN-US

Mukilteo, WA USA
 
S

Sue Mosher [MVP]

The easy way would be to address the notification to the email address for the folder in server2 where you want the item to appear.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP]

Where is the form published on each machine?

hkadhim said:
thanks Hollis for your reply,
i created the object like this:
Set myOlApp = CreateObject("Outlook.Application")

Set MyNameSpace = myOlApp.GetNameSpace("MAPI")

....

but still when i open it on server 2 it opens as a normal email not as a
form. Is there any examples on how to accomplish this?

thanks a lot

Hollis D. Paul said:
I am using the following:

'Create and send message to server2 to let them know that there is a new
help request.

Set MyNameSpace = Application.GetNameSpace("MAPI")
In this code, you are using the default application, which is connected to
server 1 and you will always get connected to the public folders of that
server. What you need to do, when you create your help desk form, is
create an application object that is logged into Server 2 (not sure I have
kept the servers straight), and create the message in its public info
store. Not having two exchange servers, I have never done this, but there
has always been the password options that allow you to connect
automatically, so I am sure that you can also specify the server in
addition.

Hollis D. Paul [MVP - Outlook]
(e-mail address removed)
Using Virtual Access 4.52 build 277 (32-bit), Windows 2000 build 2195
http://search.support.microsoft.com/kb/c.asp?FR=0&SD=TECH&LN=EN-US

Mukilteo, WA USA
 

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