Hi DeCojute,
my error is ->CDO.Message.1 (0x80040213)
The transport failed to connect to the server.
How to solve this problem?
i dont have a sever .
my coding is
######################################################
<!--METADATA TYPE="typelib"
UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
NAME="CDO for Windows 2000 Library" -->
<!--METADATA TYPE="typelib"
UUID="00000205-0000-0010-8000-00AA006D2EA4"
NAME="ADODB Type Library" -->
<%
Dim ObjMail
Set ObjMail = Server.CreateObject("CDO.Message"

Set objConfig = CreateObject("CDO.Configuration"
objConfig.Fields(cdoSendUsingMethod) = cdoSendUsingPort
objConfig.Fields(cdoSMTPServer) = "localhost"
objConfig.Fields(cdoSMTPServerPort) = 25
objConfig.Fields(cdoSMTPAuthenticate) = cdoBasic
objConfig.Fields.Update
Set objMail.Configuration = objConfig
Dim VarName,varEmail,varCompany,varTelephone,varComments
varName="Mr lee"
varEmail="abc@abc.com"
varCompany="abc"
varTelephone="123"
varComments="hello"
objMail.From = varName & " <" & varEmail & ">"
objMail.To = "your-name@your-website.com"
objMail.Subject = "Contact from Your Website"
objMail.HTMLBody = varName & "<br />"_
& VBCrLf & varCompany & "<br />"_
& VBCrLf & varTelephone & "<br />"_
& CBCrLf & varComments & "<br />"
objMail.Send
Set objMail = Nothing
Response.Write "Hey "& varName & ",<br />"_
& VBCrLf & "Thanks for your feedback.<br />"_
& VBCrLf & "We’ll contact you as soon as possible!"
%>
###########################################################