Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 218
  • Last Modified:

form of mailto (or other) to bring up file window

I want to have a button or link on a page that, when pressed, allows the user to select a file to be emailed to a target user.  It needs to be insensitive to the mail client program that the user has.  Is there a way to do this?

I currently just have a mailto href, and instructions for clicking file->attach (generically) when the mail interface opens, but I would like to have the user presented with the file selection dialog as soon as he clicks the link.
0
sniles
Asked:
sniles
1 Solution
 
jbirkCommented:
I don't think that this is possible.  What you may be able to do is create a form which includes an input type=file and then sends that file to a cgi program which opens a mail client and attaches to it the file that was sent to it.  Unfortunately I have no idea how to do that, only that it may be possible depending on the e-mail client and on whether you have cgi access and the ability to program a cgi program that receives a file.

Good luck!
-Josh
0
 
alweinerCommented:
You can do it if you've got sysop rights to the www server where your program is running.  You'll have to write a cgi- script that runs a mailer program and passes the program the appropriate text file (the mail program and syntax depends on the platform - if it's Unix, then it's probably sendmail or mail)

If you want the code for something like that, it's gonna cost more that 100 points :)

What's the server platform?
0
 
snilesAuthor Commented:
The platform is windows 95/98/NT in a custom (no cgi) web server environment. I was hoping to just use client-side features and not get the server involved.... sounds like I'll just have to create the functionality in the server.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now