problem sending mail from ASP server

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
 
B

bgs

thanks
meanwhile i figured out it didn't work because most of the free-
hosting services simple don't offer SMTP support
 
D

Dave Anderson

bgs said:
...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?

Or perhaps the server is not running SMTP Services? Or using a non-standard
configuration, which will require you to update objCDOMail.Configuration?

Why don't you ask the hosting company?
 
B

bgs

Or perhaps the server is not running SMTP Services? Or using a non-standard
configuration, which will require you to update objCDOMail.Configuration?

Why don't you ask the hosting company?

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.

i now know it doesn't offer SMTP support,
now trying to figure out how to use my ISP SMTP server
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,044
Messages
2,570,388
Members
47,052
Latest member
ketan

Latest Threads

Top