|
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 = "aa@xx.com"
JMail.Subject = "Project Design ---" + strJobNumber
JMail.Body = strLink
JMail.AddAttachment ("C:\1.txt")
JMail.AddRecipient ("xx@xx.com")
There are currently 2 questions
1 To send an attachment, is it necessary to have the attachment on the server. Is it necessary to upload to the server and then send it.
2 After sending this order, I found that if there is JMail.ContentType = "text / html"
, My attachment will appear in the body. And it is garbled, but without this sentence, my address link in the text will be useless.
How can i solve it |
|