Get ready for BLACK FRIDAY shopping starting in

Forums

ASP

This topic is locked

Server.mappath problemo

Posted 15 Mar 2005 15:02:15
1
has voted
15 Mar 2005 15:02:15 adam partridge posted:
im trying to attach a file using CDO mail however when i use server.mappath i get an network address e.g.

\\nas17ent\domains\l\\user\htdocs\cvs


which is causing an error when attaching .. is there any other way to find the physical address ?


Replies

Replied 15 Mar 2005 15:50:57
15 Mar 2005 15:50:57 Lee Diggins replied:
Hi Adam

Try running this on a blank page and see if any of these give better physical path information.
<table border="1" cellpadding="2" cellspacing="0">
<%
Dim x
For Each x In Request.ServerVariables
Response.Write("<tr><td><b>" & x & "</b></td><td>" & Request.ServerVariables(x) & " </td></tr>"
Next
%>
</table>

Sharing Knowledge Saves Valuable Time!!!
~ ~ ~ ~ ~ ~
<b>Lee Diggins</b> - <i>DMXzone Manager</i>
<font size="1">[ Studio MX/MX2004 | ASP -> VBScript/PerlScript/JavaScript | SQL | CSS ]</font>

Reply to this topic