ASP is a server-side scripting language that can be used to generate dynamic content conditionally or from a database. More info.
Sun ONE ASP version 4.0.2. This is the version of ASP that runs on Linux and there are some differences between ASP on Microsoft's IIS web server and the Sun ONE version on f2o.org's Apache servers.
You should use an .asp file extension.
<%
ConnString = "Driver={MySQL};" _
& "SERVER=localhost;" _
& "DATABASE=username;" _
& "UID=username;" _
& "PASSWORD=password"
Set DataConn = Server.CreateObject("ADODB.Connection")
DataConn.Open ConnString
' connection has now been made.
' the connection object is DataConn
%>
<%
Set mail = Server.CreateObject("CDONTS.NewMail")
mail.Host = "localhost"
mail.To = "to@domain.com"
mail.From = "from@domain.com"
mail.Body = "test"
mail.Send
%>
More information on sending email via an ASP web page can be found in the Chili!soft Documentation for Chili!Mail (SMTP) Component.
You can use either file or virtual to include files with ASP. You do not need to use the full root path. Below is a sample that assumes that your include files are within a directory under public_html entitled includes.
<%your ASP code..%> <!--#include virtual ="/includes/myfile.asp"--> <!--#include file ="includes/myfile.asp"--> <%your ASP code..%>
Progressive Networks has a number of support options in addition to our FAQ's available for our members: