Well it's not an email if it's not going to an email server (and then on to someone's mailbox). It's just... "a file".
Where is the directory you want to write to in relation to the CF server? Is it on the same network? A remote network?
Thank You for the explanation on the first paragraph.
The directory where I want to write the file (as per your explnation) is on the same network. Is there a way to do it? Please help me out.
My CF Server Name : CFServer1
Server Name where I want to place the file is : MyFirstServer (which is on the same network as my CF server)
So, I want my files go to MyFirstServer/WebFiles
Have a look at <cffile>: http://livedocs.adobe.com/coldfusion/7/htmldocs/00000254.htm
Bear in mind that by default the CF server which will be doing the file oepration runs on the local system account which will not have access to any network resources, so you will have to start the CF service with an account that does have permissions to the resources in question.
Also not that your reference to G: is probably just something your login script maps for you when you login to your desktop... the CF server probably isn't going to have a G: drive, so you will need to access the other server's file system via a UNC, eg: \\otherserver\share\path\to\directory