A user was recently having problems with the CDONTS.NewMail component, which is available to NT 4.0 and Windows 2000 developers for sending e-mail. The user was attempting to use the AttachFile method to include an attachment. The problem is that when a file is attached, you have to specify the full, physical pathname for the file. The user was attempting to use a virtual pathname.
The solution was to use Server.MapPath to change a virtual path into a physical path. For instance, if you had a pics directory in your root directory, you could find out its physical path with this:
Response.Write Server.MapPath("/pics")
The server, depending on where the directory was located, might give you back:
D:\Web\mysite.com\www\pics
What you get back is certainly not guaranteed…it's all based on what the server has configured.