How to give the link to file through the email
Hi,
i had generated the mail through my web site to the employees of the organization. Sometime i have also attached the file to the mail which is stored in the "Attchment" folder in the website at root dir.
But when mail is received to the recepient, i want to provide the link of that attached file. not physically attach that file to the mail.
for emailing i used CDONTS.
here rsTicket is record set
attach1,2,3,4 are attachments
clat1=rsTicket("attach1")
clat2=rsTicket("attach2")
clat3=rsTicket("attach3")
clat4=rsTicket("attach4")
................
attchfile1= Server.MapPath(".\Attachment")&"\"&clat1
attchfile2= Server.MapPath(".\Attachment")&"\"&clat3
attchfile3= Server.MapPath(".\Attachment")&"\"&clat3
attchfile4= Server.MapPath(".\Attachment")&"\"&clat4
..........
url2=attchfile1
url3=attchfile2
url4=attchfile3
url5=attchfile4
.........
code for mail
....
..
...
HTML = HTML & "<tr><td width=""20%""><b>Attachment</b><td><a href='"&url2&"'>"&clat1&"</a>"&",<a href='"&url3&"'>"&clat2&"</a>"&",<a href='"&url4&"'>"&clat3&"</a>"&",<a href='"&url5&"'>"&clat4&"</a></tr>"
Is this right way to link the file or there is any other way to link the file through the mail.
Thank you in advance.
|