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

  • Thread starter Thread starter Gengis
  • Start date Start date
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
 
-----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?
 
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
|
|
 
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 = "(e-mail address removed)"
.To = "(e-mail address removed)"
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message"
.Send
End With

Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>

Myron
 
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.
 
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.
 

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

Back
Top