Solved

Javascript for e-mail reply

Posted on 2011-09-03
2
296 Views
Last Modified: 2012-05-11
Hello,
Can someone tell how to use javascript to send a autoreply to the client after the client enter his/her e-mail address in a HTML form.

Something like...

Hello newUser,

Thank you soem your business.... Blah Blah..

Sincerely
Your Busines Team

I want to send the above kind of an e-mail automatically after the user enters his/her information in  the web form.

0
Comment
Question by:prain
2 Comments
 
LVL 16

Assisted Solution

by:HagayMandel
HagayMandel earned 100 total points
Comment Utility
If you want to send the email on the form submission, you add the action of sending to the form's action.
If you want to do it the moment the email address eas entered, you can do it with the 'onblur' event. calling an ajax request to do so.
in both cases a server side script (like php) does the actual email address grabbing and email sending.
Here is a php sample.
0
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 150 total points
Comment Utility
Javascript can't do that, you have to have a server side language like PHP or ASP.  In addition, 'auto-reply' will be abused by spammers as soon as they find it to send a lot of unwanted emails.  Can cause your email address to be blacklisted.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now