I cant remember the ins and outs of cdonts I haven't used it for a long
time.
But it would probably be easier to use CDO instead.
this example adds a read receipt, but you can take some lines lines out
http://dev.thatsit.net.au/samples/ws...eryreceipt.asp
"bgs" <> wrote in message
news: ps.com...
> i'm trying to send mail from asp server in two ways,
>
> the first uses CDONTS.Newmail:
> <%
> Dim objCDOMail
> Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
>
> objCDOMail.BodyFormat = 1
>
> objCDOMail.Subject="test"
> objCDOMail.From=""
> objCDOMail.To=""
> objCDOMail.Body="this is a test."
> objCDOMail.Send
> set objCDOMail=nothing
> %>
>
> and the second uses CDO.Message:
> <%
> Dim objCDOMail
> Set objCDOMail = CreateObject("CDO.Message")
>
> objCDOMail.Subject="test"
> objCDOMail.From=""
> objCDOMail.To=""
> objCDOMail.TextBody="this is a test."
> objCDOMail.Send
> set objCDOMail=nothing
> %>
>
> i know CDONTS is no longer used, but i had to check it.
> when i upload and run these files from the server, nothing happens, no
> mail is being sent.
> now,
> is it a sytax problem?
> or perhaps free hosting servers simple don't allow sending mail?
>
>
> thanks in advance,
> bgs
>