strLink = "http://localhost/prj/login.aspx?address=" + strId + "&" + "Status=" + strStatusId + "&" + "Number=" + strNumber + "&" + "ProNumber=" + strJobNumber + "&" + "Methtype=" + strMethType + "&" + "Meth=" + strMeth
        strLink = " <a href=" + strLink + ">" + strLink + "</a>"
        JMail = Server.CreateObject("JMail.SMTPMail")
        JMail.Logging = True
        JMail.ContentType = "text/html"
        JMail.ServerAddress = "172.X.X.X"
        JMail.Sender = "[email protected]"
        JMail.Subject = "Project Design ---" + strJobNumber
        JMail.Body = strLink
         JMail.AddAttachment(“C:\1.txt”)
        JMail.AddRecipient("[email protected]")
目前有2个问题
1  发送附件,一定是要此附件在服务器上吗。是不是一定要上传到服务器上,然后再发。
2  我在本定发送后,发现如果有JMail.ContentType = "text/html"
,我的附件会出现在正文。而且是乱码,但是没有这句话,我在正文的地址链接将会没有用。
请问我该如何解决