all groups > iis smtp nntp > october 2004 >
You're in the

iis smtp nntp

group:

Ilopia CDO help


Ilopia CDO help Joe
10/24/2004 9:17:02 AM
iis smtp nntp:

Hello,

Kristofer and friends.

I am trying to get the cdo for server 2003 to work with my own form not the
one coded out on Ilopia.com However I do have these forms working nicely on a
test site at http://www.animocracy.com/EmailWithCDO.asp (thanks Kristofer)

WHat I wanted to do however was get this form
http://immoralbalance.com/contact.htm
to work the same. any sugestions/ I just need it to mail to an internal
submitted email address.

I am trying to get away from FPSE on forms

thank you
Re: Ilopia CDO help Jonathan Maltz [MS-MVP]
10/24/2004 1:31:12 PM
Hi Joe,

It should work exactly the same, but you may need to recreate the form since
I'm not sure if FPSE likes to be converted to/from

--
--Jonathan Maltz [Microsoft MVP - Windows Server - IIS, Virtual PC]
http://www.visualwin.com - A Windows Server 2003 visual, step-by-step
tutorial site :-)
http://vpc.visualwin.com - Does <insert OS name> work on VPC 2004? Find out
here
Only reply by newsgroup. I do not do technical support via email. Any
emails I have not authorized are deleted before I see them.


[quoted text, click to view]

Re: Ilopia CDO help Joe
10/24/2004 1:45:06 PM
Hello Jonathan,

Well I didn't create the form in FP so I can remove the code from the page.

But how do you ge the form filds to "match" the asp code?
THere is no place to specify the email address?

Thanks
Joe

[quoted text, click to view]
Re: Ilopia CDO help Joe
10/24/2004 3:07:02 PM
Ok thanks.

Now does the HTML have to be formatted just as it is on Ilopi?

Because Mine is not. I may have to format the HTML the same

Please let me know?

[quoted text, click to view]
Re: Ilopia CDO help Jonathan Maltz [MS-MVP]
10/24/2004 6:00:40 PM
Hi,

You can change (http://www.ilopia.com/Articles/WindowsServer2003/CDO.aspx):
07| objMessage.To = Request.Form("To")
To:

objMessage.To = "admin@example.com"

And remove the "To" text box

--
--Jonathan Maltz [Microsoft MVP - Windows Server - IIS, Virtual PC]
http://www.visualwin.com - A Windows Server 2003 visual, step-by-step
tutorial site :-)
http://vpc.visualwin.com - Does <insert OS name> work on VPC 2004? Find out
here
Only reply by newsgroup. I do not do technical support via email. Any
emails I have not authorized are deleted before I see them.


[quoted text, click to view]

Re: Ilopia CDO help Joe
10/25/2004 6:17:02 PM
Hello Jonathan,

Well, I added this objMessage.To = "admin@example.com"

And remove the "To" text box

and got this 500 error

and I tried o use the html in my page and it didn't work.

If I populate the "To" field with value= Info@Immoralbalance.com and HIDDEN.
the form will submit only with Kristofers HTML. Ok sound wierd to you then
here is the working version http://immoralbalance.com/contact_copy(1).asp

As you may see I had to delete the previous form and add his.
Notice the hidden field?

Ok, here is the code http://immoralbalance.com/FORMCODE1.htm This URL is an
untouched form accept FPSE is used to process the form.

Scroll down you will see the code highlighted in yellow

So how do you add a objMessage asp line for the option box?

Thank you
Joe


[quoted text, click to view]
Re: Ilopia CDO help Jonathan Maltz [MS-MVP]
10/25/2004 6:20:02 PM
Nope - All Kristofer was doing was providing a feature-complete test
website. It can be modified to do anything you wish

--
--Jonathan Maltz [Microsoft MVP - Windows Server - IIS, Virtual PC]
http://www.visualwin.com - A Windows Server 2003 visual, step-by-step
tutorial site :-)
http://vpc.visualwin.com - Does <insert OS name> work on VPC 2004? Find out
here
Only reply by newsgroup. I do not do technical support via email. Any
emails I have not authorized are deleted before I see them.


[quoted text, click to view]

Re: Ilopia CDO help Joe
10/25/2004 7:17:03 PM
Yes I meant replaced

let me see know

get back to you

[quoted text, click to view]
Re: Ilopia CDO help Joe
10/25/2004 7:25:03 PM
Ok did what you said got this when I went to view the changes in my browser


Microsoft VBScript compilation error '800a0408'

Invalid character

/contact_copy(1).asp, line 11

objMessage.To = Info@Immoralbalance.com
--------------------^


[quoted text, click to view]
Re: Ilopia CDO help Joe
10/25/2004 7:37:02 PM
I feel stupid here I forgot the " "

Damn all this time?

Ok then that fixes that but how do you match the

objMessage to the HTML

Like you have:

Sender
To
From

and so on.... what others can be placed in there?

Like can you have objMessage.Option= Request.Form ("dropdown")

to match the option box?


Thank Jonathan

[quoted text, click to view]
Re: Ilopia CDO help Jonathan Maltz [MS-MVP]
10/25/2004 10:08:17 PM
Hi,

I hope by "add" you meant "replaced". You can't have 2 objMessage.To lines

Also, can you provide the full 500 error code (disable IE Friendly Error
messages using Tools -> Internet Options -> Advanced)

--
--Jonathan Maltz [Microsoft MVP - Windows Server - IIS, Virtual PC]
http://www.visualwin.com - A Windows Server 2003 visual, step-by-step
tutorial site :-)
http://vpc.visualwin.com - Does <insert OS name> work on VPC 2004? Find out
here
Only reply by newsgroup. I do not do technical support via email. Any
emails I have not authorized are deleted before I see them.


[quoted text, click to view]

Re: Ilopia CDO help Joe
10/26/2004 5:25:03 PM
I think I got that last night.

I moved the dropdown and added "message" to the name of the form.


Thanks
Joe

[quoted text, click to view]
Re: Ilopia CDO help Jonathan Maltz [MS-MVP]
10/26/2004 6:35:44 PM
No - but you _can_ pass the value of a drop-down to the body and/or subject
line of an email

--
--Jonathan Maltz [Microsoft MVP - Windows Server - IIS, Virtual PC]
http://www.visualwin.com - A Windows Server 2003 visual, step-by-step
tutorial site :-)
http://vpc.visualwin.com - Does <insert OS name> work on VPC 2004? Find out
here
Only reply by newsgroup. I do not do technical support via email. Any
emails I have not authorized are deleted before I see them.


[quoted text, click to view]
AddThis Social Bookmark Button