Click to See Complete Forum and Search --> : mailto-question


joel
07-24-2003, 01:10 PM
hi forum
I'm a newbie to Javascript and i'm having a problem with the mailto-function.

basically i just copied a script from javascript.internet.com to have a form send to my email-adress. The form header looks like this:

<FORM ENCTYPE="text/plain" NAME="test" METHOD='POST'
ACTION='mailto:nonova@bluemail.ch?subject=Web Message' onSubmit="return submitForm()">

...and since my browser (opera) tells me (in an alert) that an email is going to be send and asks if i want to reveal my adress to the recipient i think the form should be ok.

But: I never receive any Email. I even tried to send to a different email-adress, but that one received nothing as well.

The source that i pretty much left untouched can be found HERE (http://javascript.internet.com/forms/suggestions.html)

Plus i tried another script (This one (http://www.chepd.mq.edu.au/boomerang/teaching.www/mailForm.htm)), again just changing the email-adress to be my own - that didnt work, too...

I'm desperate... :confused:

requestcode
07-24-2003, 01:59 PM
First of all I would suggest that you use a server side language to process forms. They are much better than using the "mailto" in the form. Most people do not have their Mail Client set up correctly to use them. Is your Mail Client set up correctly? Also if we could see how you used the code that would help to determine the error. Do you have a link?

joel
07-24-2003, 04:13 PM
Um unfortunately i happen to have accesability problems, too, as i just noticed - so i cannot provide any link to my page yet.

But what you say sounds just like what i wanted to have, to be true i was in doubt about wether what i was doing would send the form right away or rather pop up the user's mail-client.

It is like this: I try to set up apache to run on my PC, thus serving a website from my home, which again should carry the mentioned form - and i want it to send the text-boxes to my Email-adress, without launching any client-side email proggie... What's the recommended way to do this, then?

thanks,
joe