Print Page | Close Window

cdonts attachfile object

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=17168
Printed Date: 29 March 2026 at 5:07pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: cdonts attachfile object
Posted By: fkoskotas
Subject: cdonts attachfile object
Date Posted: 07 November 2005 at 1:38pm
works with this line:

objMessage.Attachfile "g:\book1.xls"

but not this one:

objMessage.Attachfile " http://il93-xxxx/" rel=nofollow>http://il93-xxxx/ "& request.Form("location"),request.Form("location")



Replies:
Posted By: Gullanian
Date Posted: 07 November 2005 at 2:05pm
What are you trying to do?


Posted By: fkoskotas
Date Posted: 07 November 2005 at 2:10pm
send an attachment from a different machine than the machine the app runs on


Posted By: ub3rl337ch3ch
Date Posted: 07 November 2005 at 5:34pm

i dont think it will work because you're messing up the target url... what is an example of thend url you're trying to use?

also, i'm not sure if you can attchfile with a url... then again i've only really brushed on cdonts...


Posted By: fkoskotas
Date Posted: 08 November 2005 at 7:49am
objMessage.Attachfile " file://\\il98-5788\c$\book1.txt - \\il98-5788\c$\book1.txt "


Posted By: ub3rl337ch3ch
Date Posted: 08 November 2005 at 4:32pm

well assuming the submitted field location was c$/book1.txt, the string should end up correct  if you use

objMessage.Attachfile " http://il93-xxxx/" target=_blank rel=nofollow>http://il93-xxxx/ " & request.Form("location")
 
the extra request.form may have bee what was killing it...


Posted By: fkoskotas
Date Posted: 09 November 2005 at 7:48am
No thats's not it, same issue.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net