|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.alarexgroup.m2mplf.clients.SMTPClient
public class SMTPClient
Example:
SMTPClient smtp = new SMTPClient("smtp.domain.com",25,connection_profile);
|
| Constructor Summary | |
|---|---|
SMTPClient(java.lang.String smtpServer,
int port,
java.lang.String connectionProfile)
Creates a new instance of SMTPClient (SMTP client) |
|
| Method Summary | |
|---|---|
void |
closeSMTP()
Closes this client's SMTP connection |
java.io.OutputStream |
createMessage(java.lang.String from,
java.lang.String to)
|
boolean |
openSMTP(java.lang.String user,
java.lang.String password)
Opens SMTP connection in this client |
boolean |
openSMTPnoAuth()
Opens an anonymous SMTP conection in this client |
boolean |
sendMessage()
Sends the prepared mail message |
boolean |
sendNOOP()
Sends a NOOP command to SMTP server |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SMTPClient(java.lang.String smtpServer,
int port,
java.lang.String connectionProfile)
smtpServer - server hostname/addressport - server portconnectionProfile - a connection profile to be used| Method Detail |
|---|
public boolean openSMTP(java.lang.String user,
java.lang.String password)
user - password -
public boolean openSMTPnoAuth()
public java.io.OutputStream createMessage(java.lang.String from,
java.lang.String to)
from - mail from (e-mail address)to - mail to (e-mail address)
public boolean sendMessage()
public boolean sendNOOP()
public void closeSMTP()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||