小弟,想用aspsmartmail发邮件但怎么试都不行,求救。

czhhua28 2005-05-18 11:18:27
代码:
<%

On error resume next

Dim mySmartMail
Set mySmartMail = Server.CreateObject("aspSmartMail.SmartMail")

' Mail Server
' ***********
mySmartMail.Server = "smtp.yahoo.com"
mySmartMail.Username = "xxxxx"
mySmartMail.Password = "xxxxx"

' From
' ****
mySmartMail.SenderName = "Jacky"
mySmartMail.SenderAddress = "czhhua28@yahoo.com.cn"

' To
' **
mySmartMail.Recipients.Add "czhhua28@hotmail.com", "Me"

' Message
' *******
mySmartMail.Subject = "aspSmartMail Sample 1"
mySmartMail.Body = "This mail has been sent with aspSmartMail."

' Send the message
' ****************
mySmartMail.SendMail

if Err.Number<>0 then

Response.write "Error: " & Err.description

else

Response.write "An e-mail has just been sent to " & mySmartMail.Recipients.Item(1).Name & "."

end if

%>
报错:
Unknown Host: smtp.yahoo.com
这是怎么回事?
...全文
112 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
czhhua28 2005-05-18
  • 打赏
  • 举报
回复
自己顶一下
czhhua28 2005-05-18
  • 打赏
  • 举报
回复
但是客户要求用AspSmartMail,有没有办法解决这个问题?
binny0532 2005-05-18
  • 打赏
  • 举报
回复
用 jmail吧
网上有很多介绍的。
joeweng 2005-05-18
  • 打赏
  • 举报
回复
用jmail
czhhua28 2005-05-18
  • 打赏
  • 举报
回复
各位大侠帮帮啊~~

28,402

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧