JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 25th, 2003, 05:28 PM
k99 k99 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 2 k99 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old May 26th, 2003, 12:45 AM
iahmed iahmed is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: USA
Posts: 171 iahmed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 58 sec
Reputation Power: 6

Reply With Quote
  #3  
Old May 26th, 2003, 08:37 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
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...
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
  #4  
Old May 26th, 2003, 10:15 PM
k99 k99 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 2 k99 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #5  
Old May 26th, 2003, 10:34 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Yup - you can retreive querystring (and form values too) var's using JS

http://www.exotic-isle.com/tutorial...ascript_201.htm

Reply With Quote
  #6  
Old August 17th, 2006, 03:10 PM
emmilely emmilely is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 1 emmilely User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 45 sec
Reputation Power: 0
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!

Reply With Quote
  #7  
Old August 17th, 2006, 07:13 PM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 549 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 7 h 3 m
Reputation Power: 4
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.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Auto email reply


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT