Solved

Javascript for e-mail reply

Posted on 2011-09-03
2
300 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
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
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…
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…

839 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