PDA

View Full Version : action=mailto:



computergenius
01-20-2004, 05:00 PM
Does anyone know where this command comes from:
<form method=post action=mailto:test@mydomain.com>

This line is in a site which I have to debug and fix up, and it doesn't work. Could it be something to do with Front Page?

This is just a question of interest, I know that the guy who did the site is not a programmer, he just does graphics. But I would love to know what he *thought* would happen,

I know how to email (I will use PHP), so I am not looking for alternative answers, I just want to know what SHOULD happen in this guys code.

redcircle
01-20-2004, 05:52 PM
It should open up the users default email program and start a composition to the address given in the mailto:

computergenius
01-20-2004, 06:35 PM
Thanks for the input - it doesn't on mine. Wonder if I should be using Outlook to make it work? I don't use it.

The original page was trying to collect TEXT within the form, so I expect from your reply that is not the correct usage.

(I have done the rewrite, in PHP, - much more control!)

Corey Bryant
01-20-2004, 07:15 PM
It usually uses the user's default e-mail program to send a form. Highly unreliable. But it is not generated by Frontpage.
If you want, you might try:


<form action="mailto:you@yourdomain.com" method="POST" enctype="text/plain">

Not too sure if the apostrophes would make a difference or the enctype. I have used this before but the user also gets a warning message - which might also prevent the e-mail from going thru if the user chooses no.