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