Why don't my forms work when I give the page a .asp extension?

G

Gengis

Why don't my forms work when I give the page a .asp extension?

They work fine when the page has a .htm extension but won't send me emails
when it has an asp extension.

Any help would be appreciated.

K
 
G

Gene

-----Original Message-----
Why don't my forms work when I give the page a .asp extension?

They work fine when the page has a .htm extension but won't send me emails
when it has an asp extension.

Any help would be appreciated.

K


.
Why do you want an asp extention?
 
T

Tom Pepper Willett

Because the forms to email feature in FP will not work with an asp
extension. That is one of the limitations.
--
===
Tom "Pepper" Willett
Microsoft MVP - FrontPage
---
About FrontPage 2003:
http://office.microsoft.com/home/office.aspx?assetid=FX01085802
FrontPage 2003 Product Information:
http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
Understanding FrontPage:
http://msdn.microsoft.com/office/understanding/frontpage/
===
| Why don't my forms work when I give the page a .asp extension?
|
| They work fine when the page has a .htm extension but won't send me emails
| when it has an asp extension.
|
| Any help would be appreciated.
|
| K
|
|
 
M

Myron Johnson

Gengis said:
Why don't my forms work when I give the page a .asp extension?>
They work fine when the page has a .htm extension but won't send me emails
when it has an asp extension.>
Any help would be appreciated.

K

The FrontPage email extensions don't work on .ASP pages. You have to
use other means. Many folks use Javascript mail extensions, like
Jmail.

Or use the CDO technique, which works with IIS 5.0 and 6.0 servers
using .ASP pages:

<%
'Can send to both internal and external email addresses, but assumes
'that you have a local mailserver (mailserver.mydomain.com.
'This uses cdo, not cdont. Works inside an ASP page.

sch = "http://schemas.microsoft.com/cdo/configuration/"

Set cdoConfig = CreateObject("CDO.Configuration")

With cdoConfig.Fields
.Item(sch & "sendusing") = 2 ' cdoSendUsingPort
.Item(sch & "smtpserver") = "mailserver.mydomain.com"
.update
End With

Set cdoMessage = CreateObject("CDO.Message")

With cdoMessage
Set .Configuration = cdoConfig
.From = "[email protected]"
.To = "[email protected]"
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message"
.Send
End With

Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>

Myron
 
A

Andrew Murray

they need a htm extension...unless you're using asp code in the page. Sounds
like you're using the form handler in frontpage which is not an ASP script,
therefore only requires an html or htm extension.
 
A

Andrew Murray

you can use the asp extension if you're sending the data to a database, but not
when sending the form data to an email address.
 
Top