小弟,想用aspsmartmail发邮件但怎么试都不行,求救。
代码:
<%
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
这是怎么回事?