Solved

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

Posted on 1998-09-23
3
211 Views
Last Modified: 2010-04-09
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
Comment
Question by:sniles
3 Comments
 
LVL 8

Expert Comment

by:jbirk
ID: 1838057
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
 
LVL 1

Accepted Solution

by:
alweiner earned 100 total points
ID: 1838058
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
 

Author Comment

by:sniles
ID: 1838059
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: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article discusses how to create an extensible mechanism for linked drop downs.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question