一、Jmail 问题集锦
1、JMAIL的版本是多少?
JMAIL 是免费的4.3版本
2、JMAIL 需要单独的发信服务器吗?
JMAIL 需要设置单独的发信服务器
如:set mail=server.CreateObject("jmail.SMTPMail")
mail.ServerAddress = "mail.domain.com"
3、为什么使用jmail发信时发信失败?
最可能的原因是你指定的发信服务器需要发信认证,而你在程序中没有指定发信用户名和密码,具体的编码为:
set mail=CreateObject("jmail.Message")
mail.Charset ="gb2312"
mail.From ="from@west263.com"
mail.AddRecipient "to@west263.com"
mail.MailDomain="mail.west263.com"
mail.MailServerUserName = " from @west263.com"
mail.MailServerPassWord = "****"
mail.subject=”test”
mail.body= “欢迎”
'On Error Resume Next
mail.Send("mail.west263.com")
mail.close()
set mail=nothing
4、Jmail 能发送附件吗?
可以
mail.AddAttachment (replace(server.MapPath("/test.doc"),"",""))
5、 Jmail 可以发送Html格式的邮件吗?
可以,具体看使用手册。
6、Jmail组件实例。
(1)发信服务器需要认证。
'以下的代码是发信服务器需要认证的,例如我们的邮箱服务器
<%
set mail=CreateObject("jmail.Message")
mail.Charset ="gb2312"
mail.From ="test@west.com"
mail.AddRecipient "test@west.com"
mail.MailDomain="mx.west.com"
mail.MailServerUserName = "test@west.com"
mail.MailServerPassWord = "*****"
mail.subject=Subject
mail.body= "hi china.com"
On Error Resume Next
mail.Send("mail.west263.com")
mail.close()
set mail=nothing
response.write "发送成功"
%>
Notice: The content of the above works (including video, pictures or audio) is uploaded and published by GuTon's enterprise users, and this platform only provides information storage space services.