Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfmailparam???

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi, I'm working on webbased mailprogramm and want to enable users to attach their own files.
With cfmailparam you can set a filename, like C:\Mydocument.txt.
However when i make an input type = file to get the path from local user machine and submit this path to the mailpage it won't work: It sais File doesn't exist.

Do i have to first upload the file to the webserver with CFFILE action = "Upload"?
Is there any other way to send attachments using a browse window?

TNX in ADV
 
hi mcow

The browser isn't sending the mail, CF server and its default mail server are. I think you understand this, so just be aware that anything CF server has to transfer to the mail server must already exist on the server's local drive.

Yes, you can gather all of the necessary information on one form page, but the action CFM template you create must first transfer the file from the user, and then know where that file exists locally, and then use that path for the CFMAIL attachment. Since CF is the middleman, it can't simply relay your data directly to the mail server.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top