We help IT Professionals succeed at work.

Automatic Email generation using java scriipt

donnae
donnae asked
on
Medium Priority
1,032 Views
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

Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2004
Commented:
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...

Tim

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
Thanks
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.