Jmail发送附件,有兴趣请进!!
Set msg = Server.CreateObject("JMail.Message")
msg.silent = true
msg.Logging = true
msg.Charset = "gb2312"
msg.ContentType = "text/html"
msg.MailServerUserName = mailuser
msg.MailServerPassword = mailpass
msg.From = mailfrom
msg.FromName = "论坛"
msg.AddRecipient myemail '收件人Email
msg.Subject = "测试邮件”!" '信件主题
mailbody="<html><head><style type='text/css'>a:link {color: #0066CC; text-decoration: none} a:visited {color: #0066CC; text-decoration: none} a:hover { color: #CC0099; text-decoration: underline}body { font-size: 9pt;} </style><title>测试</title></head><body>这是测试邮件!"
contentId = msg.AddAttachment (Server.MapPath("mail.asp"), false)
mailbody=mailbody & "</html>"
msg.Body = mailbody '正文
msg.Send(mailserver)
这段是用Jmail发送邮件,但发送的附件却是包含在网页里边的,显示出来是乱码,而不是附件另存为这样的形式,请问这是为什么?应该如何弄?

