Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP 3.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 1st, 2007, 02:31 AM
Authorized User
 
Join Date: Jan 2007
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to pushpa
Default 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.








Similar Threads
Thread Thread Starter Forum Replies Last Post
Gridview Email Link ronhawker General .NET 0 November 9th, 2006 07:12 PM
how to give link to flash file in DW Shweta Flash (all versions) 7 September 6th, 2006 08:27 AM
Email through vb code Plz give me reply sachinbashetti General .NET 0 September 23rd, 2005 04:27 AM
Email Link in Msgbox function rweide VBScript 4 March 31st, 2005 02:21 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.