org.wcb.autohome.util
Class EmailService
java.lang.Object
org.wcb.autohome.util.EmailService
- public class EmailService
- extends java.lang.Object
Copyright (C) 1999 Walter Bogaardt
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
EmailService.java
Created on January 19, 2004, 7:59 PM
- Author:
- wbogaardt
Project: Home Automation Interface
Filename: $Id: EmailService.java,v 1.5 2004/02/02 23:41:31 wbogaardt Exp $
Abstract: This allows the alice interface to send off email notification of monitored events.
$Log: EmailService.java,v $
Revision 1.5 2004/02/02 23:41:31 wbogaardt
refactored email so that properties are maintained in bean object and added allowing username and password authentication for email servers that require it.
Revision 1.4 2004/01/20 00:38:13 wbogaardt
removed dead import
Revision 1.3 2004/01/20 00:20:58 wbogaardt
allow email service to send status code back if email succeds or fails
Revision 1.2 2004/01/19 22:35:38 wbogaardt
added fixes to runing events and emails so they work and added a testing of a monitored event through the table popup on a right mouse click.
Field Summary |
static java.lang.String |
EMAIL
|
static java.lang.String |
NAME
|
static java.lang.String |
SUBJECT
|
Method Summary |
boolean |
sendEventMessage(IX10MonitorEvent ev)
This takes an X10MonitorEvent object and sends a message about this monitor
to the user specified email address. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
SUBJECT
public static final java.lang.String SUBJECT
- See Also:
- Constant Field Values
EMAIL
public static final java.lang.String EMAIL
- See Also:
- Constant Field Values
EmailService
public EmailService(EmailHeaderBean eBean)
sendEventMessage
public boolean sendEventMessage(IX10MonitorEvent ev)
- This takes an X10MonitorEvent object and sends a message about this monitor
to the user specified email address.
- Parameters:
ev
- Monitored X10MonitorEvent object.
- Returns:
- true success and false failed sending email.
Copyright © 1999-2004 Walter Bogaardt. All Rights Reserved.