B
bgs
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="(e-mail address removed)"
objCDOMail.To="(e-mail address removed)"
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="(e-mail address removed)"
objCDOMail.To="(e-mail address removed)"
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
the first uses CDONTS.Newmail:
<%
Dim objCDOMail
Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.BodyFormat = 1
objCDOMail.Subject="test"
objCDOMail.From="(e-mail address removed)"
objCDOMail.To="(e-mail address removed)"
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="(e-mail address removed)"
objCDOMail.To="(e-mail address removed)"
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