Solved

Javascript for e-mail reply

Posted on 2011-09-03
2
299 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

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.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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 Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

770 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