|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jthomas.mailfaces.FaceSMS
FaceSMS will handle the sending of an SMS message (Short Message Service) to the specified cellphone. The subject and body of the email will be extracted and made into a 160 byte message and emailed to a server using the original From: header. The SMS server (from the SMSEmail parameter in the faces.opt file) is supplied by the cell phone carrier and will convert the email and send the SMS message.
Constructor Summary | |
FaceSMS()
Default constructor for FaceSMS. |
Method Summary | |
boolean |
getSMSActive()
|
protected java.lang.String |
getText(Mailmsg mailmsg,
int max)
getText will get the text from the original mailmessage and prepare it tfor the SMS Message. |
void |
refreshOptions()
Method: refreshOptions() get control initially and when the user refreshes the Option file. |
void |
sendSMS(Mailmsg mailmsg)
Send an SMS message based on the specified Mailmsg. |
void |
setSMSActive(boolean onOff)
get/set SMS active flag The user can activate and deactivate the SMS service |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FaceSMS()
Method Detail |
public void refreshOptions()
SMS SMSEmail SendMailHost SMSMaxLength
public void sendSMS(Mailmsg mailmsg)
mailmsg
- The instance of Mailmsg that we
will use to compose the SMS message
protected java.lang.String getText(Mailmsg mailmsg, int max)
mailmsg
- The original error messagemax
- The mas length that we can send in SMS
public void setSMSActive(boolean onOff)
public boolean getSMSActive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |