标题:大家帮我看下,我写的send mail代码有没有问题,在运行时,页面是不行的。
只看楼主
Kettyjin1983
Rank: 1
等 级:新手上路
帖 子:303
专家分:0
注 册:2007-8-17
结帖率:66.67%
 问题点数:0 回复次数:1 
大家帮我看下,我写的send mail代码有没有问题,在运行时,页面是不行的。
<%
function SendMyMail(mailbody)
    From = owner&"@
    Reciever= tobe&"@
    MailBody=MailBody & "@message='helleo," & Chr(13) & Chr(13)
    MailBody=MailBody & "Please be informed that there is some barcode transfered to you,please visit htt://hzmot/m-track/transfer.asp to take some action"
    MailBody=MailBody & Date() & Chr(13) & "'"
 dim objSendMail
 set objSendMail = CreateObject("JMail.SMTPMail")
 objSendMail.silent = true
 objSendMail.logging = true
 objSendMail.ServerAddress= "hzexch01.
 objSendMail.Sender= From
 objSendMail.C
 objSendMail.Subject="M-Track system information"
 objSendMail.AddRecipient Reciever
 objSendMail.Charset = "gb2312"
 objSendMail.Body = MailBody
 objSendMail.Priority=1
 
 objSendMail.execute
 set objSendMail = nothing
   
end function
%>
搜索更多相关主题的帖子: send mail 页面 代码 运行 
2007-12-05 15:10
沉默的老虎
Rank: 1
等 级:新手上路
帖 子:19
专家分:0
注 册:2007-11-7
得分:0 
很多mail服务器必须验证用户后才可以发邮件。应该在jmail里加上发件人验证,具体可以查查jmail说明.

.cn
2007-12-06 10:53



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-190559-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.102077 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved