PDA

View Full Version : auto email response


abdulahad
02-07-2004, 06:31 PM
Hello !
I have a html page with a simple form. When someone click on form submit button, it has to email automatically and email to the address provided in the form. I know already how to add email link. But the problem is it open outlook express and required send button to be pressed. And I don't want this. It has to be automatically, I mean no more button clicks after the form submit. As we see mostly on the sites when registering.

Thanks in advance.

Ahad

jemfinch
02-07-2004, 11:09 PM
It's impossible. You can't send emails from a person's computer without their consent, and that means they have to press the enter button.

What you "see mostly on the sites when registering" is the site sending *you* an email. And you can't do that with javascript, either.

Jeremy

Whiteknight
02-08-2004, 06:08 PM
i think he wants to have the server send a confirmation email to the user's address that he writes in the form, and IIRC javascript can do that.

or CGI can do that too.

if you have sendmail installed, that is.

stuka
02-08-2004, 11:56 PM
Yup - Whiteknight's nailed it. To send mail automatically, you need an MTA like sendmail (qmail, courier, IIS's SMTP server, postfix - well, you get the idea) rather than just an MUA (Outlook/Outlook Express, Eudora, pine, mutt). Oh - and you can't do this from the client side using mailto: links - you'd need some server side scripting to handle that part of it.

Whiteknight
02-13-2004, 06:43 PM
it would be simple enough to write a perl script to take care of it, if you feel like dealing with perl that is.

kryptech.net
03-06-2004, 01:25 AM
or the mail() function in PHP...