|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.sensorbase.mailer.Mailer
public class Mailer
Provides a wrapper for SensorBase email services. Use the singleton instance to send emails: Mailer.getInstance().send(). To aid in testing, no emails are sent if the Hackystat server is a test installation, or the user email is in hackystat test domain.
Method Summary | |
---|---|
static Mailer |
getInstance()
Returns the singleton instance of Mailer, creating it if necesssary. |
boolean |
send(java.lang.String toAddr,
java.lang.String subject,
java.lang.String body)
Attempts to send an email. |
boolean |
send(java.lang.String fromAddr,
java.lang.String toAddr,
java.lang.String subject,
java.lang.String body)
Attempts to send an email. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Mailer getInstance()
public boolean send(java.lang.String fromAddr, java.lang.String toAddr, java.lang.String subject, java.lang.String body)
fromAddr
- The email address fromtoAddr
- The email address to send to.subject
- The subject of the email.body
- The email body.
public boolean send(java.lang.String toAddr, java.lang.String subject, java.lang.String body)
toAddr
- The email address to send to.subject
- The subject of the email.body
- The email body.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |