|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Auto email reply
Hi all,
I just wondering is there any javascript that can auto reply an email to the client when client click on submit button in a HTML form? thanx |
|
#2
|
|||
|
|||
|
|
|
#3
|
||||
|
||||
|
Or you could just submit another form after the submitting the one with the values.
You'd set the second form's action to: <form action="mailto:bob@bob.com?body=Thanks for filling out the form&subject=Confirmation" method="post" name="frmPost"> This will send an email to bob... |
|
#4
|
|||
|
|||
|
auto email reply
Thanx for the reply, but is that possible to reply the client with the email address that they insert?
eg. "mailto: URL" is it possible to set a variable for email field, so it will reply to whoever insert the email address. cheers |
|
#5
|
||||
|
||||
|
Yup - you can retreive querystring (and form values too) var's using JS
http://www.exotic-isle.com/tutorial...ascript_201.htm |
|
#6
|
|||
|
|||
|
I would love to know how this turned out... it seems like a great way to get an automated response without any of those frills that show up everywhere else. The last link posted doesn't seem to exist anymore, and I'm clueless about writing JS, though I know how to tweak it.
I have a simple form that has 2 input fields, and I would like a "thank you" to be sent to anyone that submits it. Could someone please show me how to grab the e-mail from the one form and use it in the second form? Thanks! |
|
#7
|
||||
|
||||
|
javascript to send email
Hi emmilely, welcome to the forums,
This thread is a little over 3 years old. Things have changed since then. I don't think you can use javascript to send an email automatically. You can use it to pre-fill the users email client, but they will have to decide to send it. It doesn't seem likely that a user would decide to send an email to themselves. You could use a server-side script like Matt's formmail to send the form to you, and you could modify things to send a user a "thank you" email, but it may be easier to just send them to a "thank you" web page. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Auto email reply |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|