This portion goes into the header portion of the page before the tag.
(Just remove the space from between the < and the ! in the next line)
< !--
METADATA
TYPE="typelib"
UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
NAME="CDO for Windows 2000 Library"
--> "
This portion can go anywhere in the page normally this is placed in the area if it is a post back to itself. else it can go into the body of the page.
(Just remove the space from between the < and the ! in the next line)
< !--r> / Set cdoConfig = CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "smtp.yourdomain.co.za"
.Item(cdoSMTPAuthenticate) = 1
.Item(cdoSendUsername) = "AValidUser@yourdomain.co.za"
.Item(cdoSendPassword) = "aPassword"
.Update
End With
Set cdoMessage = CreateObject("CDO.Message")
With cdoMessage
Set .Configuration = cdoConfig
.From = "someone@someplace.co.za"
.To = "keith@hostworx.co.za"
.Subject = "Some subject"
.HTMLBody = "html body text"
.Send
End With
Set cdoMessage = Nothing
Set cdoConfig = Nothing
-->