可调用,JMAIL,CDONTS试下,。NET,ASP,或JSP用这两个好,DELPHI中我没有用过,我只会一点点DELPHI,可能这有一点帮助
ASP代码
on error resume next
Set msg = Server.CreateObject("JMail.Message")
msg.silent = true
msg.Logging = true
msg.Charset = "gb2312"
msg.MailServerUserName = "sz88888@126.com"
msg.MailServerPassWord = "11111"
msg.AddHeader "Originating-IP", Request.ServerVariables("REMOTE_ADDR")
msg.From = "szvv8888@126.com" ' 就是这个家伙,不能随便写的,一定要填你在126.com上申请的邮箱,很纳闷
msg.FromName ="testname" 'Request.Form("Name")
msg.AddRecipient "anna888@163.com"
msg.Subject = "test"
body="内空"
msg.Body = body
if not msg.Send ("smtp.126.com") then
Response.write "<pre>" & msg.log & "</pre>"
else
set msg = nothing
Response.Write "邮件已发送!"
end if
if err.number<>0 then
response.write err.description
response.end
end if