com.atlassian.mail.server
Interface SMTPMailServer

All Superinterfaces:
MailServer
All Known Implementing Classes:
SMTPMailServerImpl

public interface SMTPMailServer
extends MailServer


Field Summary
static java.lang.String DEFAULT_SMTP_PORT
           
 
Method Summary
 boolean getDebug()
          Whether SMTP-level logging is enabled.
 java.io.PrintStream getDebugStream()
          Where debug logs currently go to.
 java.lang.String getDefaultFrom()
           
 java.lang.String getJndiLocation()
           
 java.lang.String getPrefix()
           
 java.lang.String getSmtpPort()
           
 boolean isRemovePrecedence()
           
 boolean isSessionServer()
           
 void quietSend(Email email)
           
 void send(Email email)
           
 void setDebug(boolean debug)
          Enable or disable SMTP-level logging.
 void setDebugStream(java.io.PrintStream debugStream)
          If debug is enabled, output will go to this stream.
 void setDefaultFrom(java.lang.String from)
           
 void setJndiLocation(java.lang.String jndiLocation)
           
 void setPrefix(java.lang.String prefix)
           
 void setRemovePrecedence(boolean precedence)
           
 void setSessionServer(boolean sessionServer)
           
 void setSmtpPort(java.lang.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

public static final java.lang.String DEFAULT_SMTP_PORT
See Also:
Constant Field Values
Method Detail

getDefaultFrom

public java.lang.String getDefaultFrom()

setDefaultFrom

public void setDefaultFrom(java.lang.String from)

getPrefix

public java.lang.String getPrefix()

setPrefix

public void setPrefix(java.lang.String prefix)

isSessionServer

public boolean isSessionServer()

setSessionServer

public void setSessionServer(boolean sessionServer)

getJndiLocation

public java.lang.String getJndiLocation()

setJndiLocation

public void setJndiLocation(java.lang.String jndiLocation)

isRemovePrecedence

public boolean isRemovePrecedence()

setRemovePrecedence

public void setRemovePrecedence(boolean precedence)

send

public void send(Email email)
          throws MailException
Throws:
MailException

quietSend

public void quietSend(Email email)
               throws MailException
Throws:
MailException

getSmtpPort

public java.lang.String getSmtpPort()

setSmtpPort

public void setSmtpPort(java.lang.String smtpPort)

setDebug

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

Parameters:
debug - Turn debugging on or off

setDebugStream

public void setDebugStream(java.io.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

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


getDebugStream

public java.io.PrintStream getDebugStream()
Where debug logs currently go to.



Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.