Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > BOOK: Beginning ASP 3.0
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 1st, 2007, 02:31 AM
Authorized User
 
Join Date: Jan 2007
Location: Pune, , India.
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.



 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:36 AM.


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