|
Jive Forums API (5.5.8) Developer Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.util.SmtpProxy
public class SmtpProxy
A simple class that handles the work of connecting to an SMTP server to send an email message.
| Constructor Summary | |
|---|---|
SmtpProxy()
Create a new instance. |
|
| Method Summary | |
|---|---|
javax.mail.internet.MimeMessage |
createMessage()
Create a new MimeMessage. |
void |
send(java.util.List messages)
Send messages. |
void |
setDebugEnabled(boolean debugEnabled)
Toggles SMTP transport layer debugging on or off. |
void |
setHost(java.lang.String host)
Sets the SMTP host (eg mail.example.com). |
void |
setPassword(java.lang.String password)
Sets the username that will be used when connecting to the SMTP server. |
void |
setPort(int port)
Sets the port number that will be used when connecting to the SMTP server. |
void |
setSSLEnabled(boolean SSLEnabled)
Sets whether this gateway is configured for SSL connections to the SMTP server or not. |
void |
setUsername(java.lang.String username)
Sets the username that will be used when connecting to the SMTP server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SmtpProxy()
| Method Detail |
|---|
public void setHost(java.lang.String host)
host - The SMTP host.public void setPort(int port)
port - The SMTP port number.public void setUsername(java.lang.String username)
username - The SMTP username.public void setPassword(java.lang.String password)
password - The SMTP password.public void setDebugEnabled(boolean debugEnabled)
debugEnabled - True if SMTP debugging should be enabled.public void setSSLEnabled(boolean SSLEnabled)
SSLEnabled - True if ssl should be enabled, false otherwise.public javax.mail.internet.MimeMessage createMessage()
public void send(java.util.List messages)
throws javax.mail.MessagingException
messages - The mail objects to send.
javax.mail.MessagingException - If a connection was unable to be established.
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||