Solved

Javascript for e-mail reply

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
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…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

729 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