String | getBCC()- Gets a comma separated list of addresses set in the BCC field
|
String | getCC()- Gets a comma separated list of addresses set in the CC field
|
String | getContent()- Returns the content of the mail
|
String | getFromAddress()- Gets the from address attached to mails
|
String | getFromName()- Gets the from name presented on the mail
|
String | getMimeType()- Gets the MIME type set to the mail
|
String | getNotificationName()- Returns the notification which will trigger the mail sending
|
javax.management.ObjectName | getObservedObject()- Gets the MBean's objectname which is being listened
|
String | getServerHost()- Gets the server's host as name or IP
|
int | getServerPort()- Gets the server's port, by default is 25
|
String | getServerUsername()- Gets the username to log to the server
|
String | getSubject()- Gets the mail subject
|
int | getTimeout()- Returns the timeout used when sending mails
|
String | getTo()- Gets a comma separated list of addresses set in the TO field
|
boolean | isLoginToServer()- Indicates whether login to the SMTP server will be attpemted
|
void | sendMail()- This will directly execute the send mail.
|
void | setBCC(String bccAddresses)- Sets a comma separated list of address which will go in the BCC mail field
|
void | setCC(String ccAddresses)- Sets a comma separated list of address which will go in the CC mail field
|
void | setContent(String content)- Sets the content of the mail
|
void | setFromAddress(String fromAddress)- Sets the form address set to mail
|
void | setFromName(String fromName)- Sets the from name presented on the mail
|
void | setLoginToServer(boolean login)- Sets whether to login to the SMTP server
|
void | setMimeType(String mimeType)- Sets the MIME type, by default it is text/plain
|
void | setNotificationName(String notificationName)- Sets the notification name which will trigger the mail sending.
|
void | setObservedObject(javax.management.ObjectName targetMBeanName)- Sets the observed object.
|
void | setServerHost(String host)- Sets the server's host, it can be set as name or IP
|
void | setServerPassword(String password)- Sets server's passowrd, use with setLoginToServer(true) and setServerUsername
|
void | setServerPort(int port)- Sets the server's port.
|
void | setServerUsername(String username)- Sets server's username, use with setLoginToServer(true)
|
void | setSubject(String subject)- Sets the mail's subject, by default is Empty subject.
|
void | setTimeout(int timeout)- Sets the send timeout, by default it is 10 secs
|
void | setTo(String toAddresses)- Sets a comma separated list of address which will go in the TO mail field
|