Automatic Email generation using java scriipt

Posted on 2006-03-30
Medium Priority
Last Modified: 2008-02-07
Hi i am creating a web page that allows user to activate a lighting system of a remote house and would like to generate an automatic email each time the status of the lights change here is the code

<P>Light 1:&nbsp;<A HREF="http://IP ADDRESS/dk40_set?01">On</A>&nbsp;
<A HREF="http://IP ADDRESS/dk40_set?00">Off</A></P>

<P>Light 2:&nbsp;<A HREF="http://IPADDRESS/dk40_set?21">On</A>&nbsp;
<A HREF="http://IP ADDRESS/dk40_set?20">Off</A></P>

can anyone help is it possilbe to automatically generate email when user activates/deactivates system using java script

Question by:donnae
LVL 35

Accepted Solution

TimYates earned 250 total points
ID: 16331667
You would have to generate the email on the server side of the application...

Javascript cannot automatically create and send an email from the client's machine :-(

If you are using a JSP/servlet backend, then have a look at Javamail

If you are using some other serverside language, there will be a mail component for that too...


Author Comment

ID: 16331691

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

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