I was trying to write a simple script to send emails using CDONTS, but it doesn't seem to work.
I am using "Microsoft Windows NT Server" on my remote server and windows xp home on the local one.
see the following code, and please advise me if you can:
- Code: Select all
<%@ language= "VBscript" %>
<% Option Explicit
Dim NewMail, mBody
Set NewMail = Server.CreateObject("CDONTS.NewMail")
NewMail.To= "someone@yahoo.com"
NewMail.From= "test123f@gmail.com"
mBody= "test 123"
NewMail.Subject = "email test with CDONTS - take 1"
NewMail.Body = mBody
NewMail.Bodyformat=0
NewMail.Mailformat=0
NewMail.Send
Set NewMail=Nothing
%>


