"mailto" Question

G

Guest

Using the "mailto:..." URL, is there a simple way to attach a file to the
resulting email ?

Harry
 
T

Tom

I don't know of an easy way to add a file... BUT

Adding specific subject line to email link...
Use ?Subject=This is my subject.
Example:
<a href=mailto:[email protected]?Subject=This is my subject > Email US</a>

OR

E-Mail with Subject and Body Text.

<a href="mailto:[email protected][email protected]&subject=Order&body=Please insert the
product number and given price">Click here to Order by E-mail</a>

T
| Using the "mailto:..." URL, is there a simple way to attach a file to the
| resulting email ?
|
| Harry
| --
| "A boat is a hole in the water into which you throw money"
 
G

Guest

Tom

Thanks -- I had found a chunk of "forms code" on the web that apparently
does this via a script file on the server-side of things, but since I don't
have that code on my server, I figured I try to fake it by using the
client-side "mailto" routine as the "action" attribute. Everything looks
cool until the very end then things go nuclear with this message:

"IE Explorer Application Error; The instruction at "0x01b8d3d0" could not be
read; Click OK to terminate program"... then Explorer disappears. The test
URL and the code fragment follow below, if anyone wants to try it, and maybe
hop it up a bit to function via the client-side... any feedback appreciated.

fyi: my goal here was to permit visitors to easily send my wife pictures
directly from her web site, as she is the photo fundraising representative
for my daughter's figure skating club... not a huge deal if it simply can not
be done, but it would be kind of slick if it could be done.

Harry

http://home.comcast.net/~brittani_morgan/test_email.html

<form action="mailto:[email protected]" method="post"
enctype="multipart/form-data">
<table border="0" cellspacing="2" cellpadding="0">
<tr>
<td><label for="emailfield">E-mail Address:</label></td>
<td><input id="emailfield" type="text" name="sender" size="55"/></td>
</tr>
<tr>
<td><label for="namefield">Name:</label></td>
<td><input id="namefield" type="text" name="sendername" size="55"/></td>
</tr>
<tr>
<td valign="top"><label for="filefield">File to attach:</label></td>
<td><input id="filefield" type="file" name="file" size="24"/></td>
</tr>
<tr>
<td valign="top"><label for="cmtfield">Comments about file:</label></td>
<td><textarea id="cmtfield" name="comments" rows="4"
cols="40"></textarea></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Send File" /></td>
</tr>
</table>
</form>
 
R

Rob Giordano \(Crash\)

All they'd have to do is make the attachment themselves when their email
client pops up...maybe just post the instructions on how to do that next to
the mailto link?


| Tom
|
| Thanks -- I had found a chunk of "forms code" on the web that apparently
| does this via a script file on the server-side of things, but since I
don't
| have that code on my server, I figured I try to fake it by using the
| client-side "mailto" routine as the "action" attribute. Everything looks
| cool until the very end then things go nuclear with this message:
|
| "IE Explorer Application Error; The instruction at "0x01b8d3d0" could not
be
| read; Click OK to terminate program"... then Explorer disappears. The
test
| URL and the code fragment follow below, if anyone wants to try it, and
maybe
| hop it up a bit to function via the client-side... any feedback
appreciated.
|
| fyi: my goal here was to permit visitors to easily send my wife pictures
| directly from her web site, as she is the photo fundraising representative
| for my daughter's figure skating club... not a huge deal if it simply can
not
| be done, but it would be kind of slick if it could be done.
|
| Harry
|
| http://home.comcast.net/~brittani_morgan/test_email.html
|
| <form action="mailto:[email protected]" method="post"
| enctype="multipart/form-data">
| <table border="0" cellspacing="2" cellpadding="0">
| <tr>
| <td><label for="emailfield">E-mail Address:</label></td>
| <td><input id="emailfield" type="text" name="sender" size="55"/></td>
| </tr>
| <tr>
| <td><label for="namefield">Name:</label></td>
| <td><input id="namefield" type="text" name="sendername"
size="55"/></td>
| </tr>
| <tr>
| <td valign="top"><label for="filefield">File to attach:</label></td>
| <td><input id="filefield" type="file" name="file" size="24"/></td>
| </tr>
| <tr>
| <td valign="top"><label for="cmtfield">Comments about
file:</label></td>
| <td><textarea id="cmtfield" name="comments" rows="4"
| cols="40"></textarea></td>
| </tr>
| <tr>
| <td></td>
| <td><input type="submit" value="Send File" /></td>
| </tr>
| </table>
| </form>
|
|
|
| --
| "A boat is a hole in the water into which you throw money"
|
|
| "Tom" wrote:
|
| > I don't know of an easy way to add a file... BUT
| >
| > Adding specific subject line to email link...
| > Use ?Subject=This is my subject.
| > Example:
| > <a href=mailto:[email protected]?Subject=This is my subject > Email US</a>
| >
| > OR
| >
| > E-Mail with Subject and Body Text.
| >
| > <a href="mailto:[email protected][email protected]&subject=Order&body=Please insert
the
| > product number and given price">Click here to Order by E-mail</a>
| >
| > T
| > | > | Using the "mailto:..." URL, is there a simple way to attach a file to
the
| > | resulting email ?
| > |
| > | Harry
| > | --
| > | "A boat is a hole in the water into which you throw money"
| >
| >
| >
 
P

p c

Rob, is right. My 2 cents: There is nothing wrong in providing
instructions for people. It is simple and it works. And it clarifies
expections.

...PC
 
R

Rob Giordano \(Crash\)

Being lazy like me tends to KISS problems like this.


| Thanks very much -- excellent... forest from the trees issue on my end,
sorry.
|
| Harry
| --
| "A boat is a hole in the water into which you throw money"
|
|
| "p c" wrote:
|
| > Rob, is right. My 2 cents: There is nothing wrong in providing
| > instructions for people. It is simple and it works. And it clarifies
| > expections.
| >
| > ...PC
| >
| > Rob Giordano (Crash) wrote:
| > > All they'd have to do is make the attachment themselves when their
email
| > > client pops up...maybe just post the instructions on how to do that
next to
| > > the mailto link?
| > >
| > >
| > > | > > | Tom
| > > |
| > > | Thanks -- I had found a chunk of "forms code" on the web that
apparently
| > > | does this via a script file on the server-side of things, but since
I
| > > don't
| > > | have that code on my server, I figured I try to fake it by using the
| > > | client-side "mailto" routine as the "action" attribute. Everything
looks
| > > | cool until the very end then things go nuclear with this message:
| > > |
| > > | "IE Explorer Application Error; The instruction at "0x01b8d3d0"
could not
| > > be
| > > | read; Click OK to terminate program"... then Explorer disappears.
The
| > > test
| > > | URL and the code fragment follow below, if anyone wants to try it,
and
| > > maybe
| > > | hop it up a bit to function via the client-side... any feedback
| > > appreciated.
| > > |
| > > | fyi: my goal here was to permit visitors to easily send my wife
pictures
| > > | directly from her web site, as she is the photo fundraising
representative
| > > | for my daughter's figure skating club... not a huge deal if it
simply can
| > > not
| > > | be done, but it would be kind of slick if it could be done.
| > > |
| > > | Harry
| > > |
| > > | http://home.comcast.net/~brittani_morgan/test_email.html
| > > |
| > > | <form action="mailto:[email protected]" method="post"
| > > | enctype="multipart/form-data">
| > > | <table border="0" cellspacing="2" cellpadding="0">
| > > | <tr>
| > > | <td><label for="emailfield">E-mail Address:</label></td>
| > > | <td><input id="emailfield" type="text" name="sender"
size="55"/></td>
| > > | </tr>
| > > | <tr>
| > > | <td><label for="namefield">Name:</label></td>
| > > | <td><input id="namefield" type="text" name="sendername"
| > > size="55"/></td>
| > > | </tr>
| > > | <tr>
| > > | <td valign="top"><label for="filefield">File to
attach:</label></td>
| > > | <td><input id="filefield" type="file" name="file"
size="24"/></td>
| > > | </tr>
| > > | <tr>
| > > | <td valign="top"><label for="cmtfield">Comments about
| > > file:</label></td>
| > > | <td><textarea id="cmtfield" name="comments" rows="4"
| > > | cols="40">
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top