این اسکرپیت را خودم تست کردم جواب داد
<%
Set oCdoMail = Server.CreateObject("CDO.Message")
Set oCdoConf = Server.CreateObject("CDO.Configuration")
%>
<%
sConfURL = "http://schemas.microsoft.com/cdo/configuration/"
with oCdoConf
.Fields.Item(sConfURL & "sendusing") = 2
.Fields.Item(sConfURL & "smtpserver") = "webmail.4bagh.net"
.Fields.Item(sConfURL & "smtpserverport") = 25
.Fields.Update
end with
%>
<%
with oCdoMail
.From = "webmaster@4bagh.net"
.To = "hamid_khakzad@yahoo.com"
end with
%>
<%
with oCdoMail
.Subject = "My message subject"
.textbody="Hello"
.HTMLBody = "<b>this is my mail</B>"
end with
%>
<%
oCdoMail.Configuration = oCdoConf
oCdoMail.Send
Set oCdoConf = Nothing
Set oCdoMail = Nothing
%>
البته باید smtp سرور و آدرس میل فرستنده را برای خودت عوض کنی