Windows FAQ

What server-based languages and technologies can I use?

You can use ASP, ASP.NET, server-side includes, Microsoft SQL Server and MySQL.

How can I send email from an ASP script?

Use the sample syntax below in your ASP script:

<%
'Sends an email
Dim mail
Set mail = Server.CreateObject("CDO.Message")

mail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
mail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver")="127.0.0.1"
mail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25
mail.Configuration.Fields.Update

mail.To = "somebody@example.com"
mail.From = "somebodyelse@test.com"
mail.Subject = "test from sample ASP from MyHostControl"
mail.TextBody = "test email sent by a sample ASP script running at MyHostControl.com."
mail.Send()
Response.Write("Mail Sent!")
'Destroy the mail object!
Set mail = nothing
%>

Please Wait!

Please wait... it will take a second!