You should be using CDOSYS. This code below will work providing you have the SMTP service up and running. All you need is to place your SMTP IP address against the StrSmartHost variable, place a .To and .From addresses. Do this and just run the page to send the mail
<%
Const cdoSendUsingPort = 2
Dim iMsg,iConf,Flds,strHTML,strSmartHost
StrSmartHost = "YourIPAddresshere"
set iMsg = CreateObject("CDO.Message")
set iConf = CreateObject("CDO.Configuration")
Set Flds = iConf.Fields
'set the CDOSYS configuration fields to use port 25 on the SMTP server
With Flds
.Item("
http://schemas.microsoft.com/cdo/con...tion/sendusing") = cdoSendUsingPort
.Item("
http://schemas.microsoft.com/cdo/con...ion/smtpserver") = strSmartHost
.Item("
http://schemas.microsoft.com/cdo/con...nectiontimeout") = 10
.Update
End With
'apply the settings to the message
With iMsg
Set .Configuration = iConf
.To = "SomeValidAddress"
.From = "SomeValidAddress"
.Subject = "CDOSYS Test"
.HTMLBody = "Sent using CDOSYS..."
.Send
End With
' cleanup of variables
Set iMsg = Nothing
Set iConf = Nothing
Set Flds = Nothing
response.write "mail sent"
%>