Solved

Javascript for e-mail reply

Posted on 2011-09-03
2
301 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Assisted Solution

by:HagayMandel
HagayMandel earned 100 total points
ID: 36478088
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 83

Accepted Solution

by:
Dave Baldwin earned 150 total points
ID: 36478355
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

749 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