com.atlassian.mail.server
Interface SMTPMailServer

All Superinterfaces:
MailServer
All Known Implementing Classes:
SMTPMailServerImpl

public interface SMTPMailServer
extends MailServer


Field Summary
static String DEFAULT_SMTP_PORT
           
 
Method Summary
 boolean getDebug()
          Whether SMTP-level logging is enabled.
 PrintStream getDebugStream()
          Where debug logs currently go to.
 String getDefaultFrom()
           
 String getJndiLocation()
           
 String getPrefix()
           
 String getSmtpPort()
           
 boolean isSessionServer()
           
 void quietSend(Email email)
           
 void send(Email email)
           
 void setDebug(boolean debug)
          Enable or disable SMTP-level logging.
 void setDebugStream(PrintStream debugStream)
          If debug is enabled, output will go to this stream.
 void setDefaultFrom(String from)
           
 void setJndiLocation(String jndiLocation)
           
 void setPrefix(String prefix)
           
 void setSessionServer(boolean sessionServer)
           
 void setSmtpPort(String smtpPort)
           
 
Methods inherited from interface com.atlassian.mail.server.MailServer
getDescription, getHostname, getId, getName, getPassword, getSession, getType, getUsername, setDescription, setHostname, setId, setName, setPassword, setUsername
 

Field Detail

DEFAULT_SMTP_PORT

static final String DEFAULT_SMTP_PORT
See Also:
Constant Field Values
Method Detail

getDefaultFrom

String getDefaultFrom()

setDefaultFrom

void setDefaultFrom(String from)

getPrefix

String getPrefix()

setPrefix

void setPrefix(String prefix)

isSessionServer

boolean isSessionServer()

setSessionServer

void setSessionServer(boolean sessionServer)

getJndiLocation

String getJndiLocation()

setJndiLocation

void setJndiLocation(String jndiLocation)

send

void send(Email email)
          throws MailException
Throws:
MailException

quietSend

void quietSend(Email email)
               throws MailException
Throws:
MailException

getSmtpPort

String getSmtpPort()

setSmtpPort

void setSmtpPort(String smtpPort)

setDebug

void setDebug(boolean debug)
Enable or disable SMTP-level logging.

Parameters:
debug - Turn debugging on or off

setDebugStream

void setDebugStream(PrintStream debugStream)
If debug is enabled, output will go to this stream.

Parameters:
debugStream - An optional stream to send debug messages to. If null, System.out is used.

getDebug

boolean getDebug()
Whether SMTP-level logging is enabled.


getDebugStream

PrintStream getDebugStream()
Where debug logs currently go to.



Atlassian Mail is developed by Atlassian Software Systems.