The following code sample should work on any Windows shared hosting server:

<%
Dim ObjSendMail
Set ObjSendMail = CreateObject("CDO.Message")
     
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="mail.yourdomain.com"
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") ="somemail@yourdomain.com"
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") ="yourpassword"
ObjSendMail.Configuration.Fields.Update
     
ObjSendMail.To = "someone@someone.net"
ObjSendMail.Subject = "this is the subject"
ObjSendMail.From = "somemail@yourdomain.com"
'ObjSendMail.Headers.Add("Reply-To", Request.Form("e-mail"))
ObjSendMail.TextBody = "this is the text body"
'ObjSendMail.HTMLBody = "this is the HTML body"
ObjSendMail.Send
     
Set ObjSendMail = Nothing
%>
  • CDOSYS
  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

Redirect non-SSL to SSL in Linux (Apache)

Create a file .htaccess in the document root of your site with the following code.  If this file...

Redirect non-SSL to SSL in Windows (IIS)

The following code sample will 301-redirect http://www.domainname.com to...

How do I redirect my site using a .htaccess file?

Note: Applies to Linux hosting accounts only. Create an empty text file using a text editor such...

Enable custom error pages on IIS 7 (Windows 2008) and newer

Custom error pages can be implemented in IIS 7 (Windows 2008) and newer by placing a web.config...

Remotely view error messages on IIS 7 (Windows 2008) and newer

When a website page encounters a coding error on a IIS 7 (Windows 2008) or newer hosting server,...