I got this script from one ASP tutorial (click here to see it):

<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From=mymail@mydomain.com
myMail.To=someone@somedomain.com
myMail.TextBody="This is a message."
myMail.Sendset 
myMail=nothing
%>

replaced mymail@mydomain.com and someone@somedomain.com with
2 mail addresses of two mail-boxes that I have on www.yahoo.com and
uploaded this script (as an .asp file) on a free asp-supported remote
server. Then I tried to open the link to this file in my web browser (IE6) -
nothing happened (only got an HTTP 500 page) - and when I checked
my mailbox, I didn't find any new e-mail there. What did I do wrong or
what did I not do?

Don't use CDONTS... it was replaced years ago by CDOSYS.

Strange, I thougnt this script was using CDOSYS. I took this
script from here:
and look what they said there right before presenting this script:

"...Microsoft has discontinued the use of DONTs on
Windows 2000, Windows XP and Windows 2003.
If you have used CDONTs in your ASP applications,
you should update the code and use the new CDO
technology.

Examples using CDOSYS
Sending a text e-mail: ..."

and then my script follows. Are you sure it is still using CDONT?
If yes, what CDOSYS script do I need to be able to send mails
in ASP?

Ooops my bad i only say a few lines and just assumed it was CDONTS.

If your getting a 500 error, you need to turn off Friendly HTTP Error Messages and stop using IE :P

If your getting a 500 error, you need to turn off Friendly HTTP Error Messages

How do I do that?

... and stop using IE

Will "FireFox" work?

Well, I swiched to "FireFox" and now I am always
getting this message:

CDO.Message.1error '80040220'
The "SendUsing" configuration value is invalid.

Any idea what it means and how it could be fixed?

on what you posted, you need quotes around the email addresses:

myMail.From="mymail@mydomain.com"
myMail.To="someone@somedomain.com"

Also, this is not right:
myMail.Sendset

The "Set" should be on the start of the next line:

myMail.Send
Set myMail=nothing

>>uploaded this script (as an .asp file) on a free asp-supported remote server
>>>CDO.Message.1error '80040220'
The "SendUsing" configuration value is invalid.
Do you know if the server is running a local smtp server? Most likely it is NOT. On the tutorial page you posted, you basically need to use the last example, but you need to modify:
"smtp.server.com"

with the value of the appropriate smtp server. Contact your webhost and ask them what is their smtp address. As documented on the comment of that example:
'Name or IP of remote SMTP server

you can use either an IP address OR a domain name.

Comments
very informative and helpful
This article has been dead for over six months. Start a new discussion instead.