你好﹐組件我下載了﹐也安裝了﹐但就是不可以用﹐這是為什么呢? 總是提示錯誤﹕錯誤類型: jmail.Message (0x8000FFFF) The message was undeliverable. All servers failed to receive the message /com/jmail.asp, line 54 我不知道是為什么? 麻煩你了
Msg = "" if not JMail.Send(服务器地址) then Msg = "对不起,目标电子邮件信息不完整或服务器忙,邮件发送失败。<br> 'Msg = JMail.log '邮件发送失败的真正原因,用于调试时候使用 'response.write msg 'response.end IS_Succeed=false else IS_Succeed=true end if
總是提示錯誤﹕錯誤類型:
jmail.Message (0x8000FFFF)
The message was undeliverable. All servers failed to receive the message
/com/jmail.asp, line 54
我不知道是為什么?
麻煩你了
比如我的郵箱是[email protected] 密碼是﹕aaa﹐是不是要怎么寫?
mymail.MailServerPassWord =" '?信授??件密?
mymail.MailServerUserName =" "信授??件名?
你下载了吗?那里的说明很详细的。
另外,jmail 的版本不同,发邮件也不一样的。
这个是jmail4.1的发邮件的方法
<%
'在使用本包含文件之前要定义的参数(4个)如下:
'S_Email 发信人email
'R_Email 收信人email
'Subject 信件主题
'Body 信件正文Set JMail = Server.CreateObject("JMail.Message")
'***********************信件发送的控制信息***************************
JMail.Logging = True '启用JMail4.1的日志文件功能
JMail.Silent = True '允许纪录并显示发信的控制信息
JMail.SimpleLayout = True '减少发信时的头部信息
JMail.ContentType = "text/html"
JMail.MailServerUserName = 用户名
JMail.MailServerPassWord = 密码 '***********************发信人信息**********************************
JMail.From = S_Email
JMail.ReplyTo = S_Email
'***********************收信人信息**********************************
JMail.AddRecipient R_Email
'***********************信件正文信息********************************
JMail.Subject = Subject '信件主题
JMail.Body = Body '信件正文
JMail.Priority = 3 '设置信件的优先等级
Msg = ""
if not JMail.Send(服务器地址) then
Msg = "对不起,目标电子邮件信息不完整或服务器忙,邮件发送失败。<br>
'Msg = JMail.log '邮件发送失败的真正原因,用于调试时候使用
'response.write msg
'response.end
IS_Succeed=false
else
IS_Succeed=true
end if
JMail.Close
Set JMail = Nothing
%>
那個用戶名和密碼還有郵件服務器地址到底要用什么樣的?
我用我的各類免費郵箱就是不行﹐比如﹕
mymail.MailServerPassWord ="1234"
mymail.MailServerUserName ="[email protected]"
...............
mymail.Send ("mail.163.com)
但用論壇上有一個例子里
面的用戶名和密碼還有郵件服務器地址確可以,這是怎么回事?
是不是我免費郵箱不可以?