org.codehaus.plexus.mailsender
Interface MailSender

All Known Implementing Classes:
AbstractJavamailMailSender, AbstractMailSender, JavamailMailSender, JndiJavamailMailSender, MockMailSender, SimpleMailSender

public interface MailSender

Version:
$Id: MailSender.java 5585 2007-02-05 21:05:01Z evenisse $
Author:
Trygve Laugstøl, Emmanuel Venisse

Field Summary
static String ROLE
           
 
Method Summary
 String getPassword()
           
 String getSmtpHost()
           
 int getSmtpPort()
           
 String getUsername()
           
 boolean isDebugMode()
           
 boolean isSslMode()
           
 boolean isTlsEnabled()
           
 void send(MailMessage message)
          Send a mail.
 void send(String subject, String content, String toMailbox, String toName, String fromMailbox, String fromName)
          Send a mail message.
 void send(String subject, String content, String toMailbox, String toName, String fromMailbox, String fromName, Map extraHeaders)
          Send a mail message.
 void setDebugMode(boolean debugMode)
           
 void setPassword(String password)
           
 void setSmtpHost(String host)
           
 void setSmtpPort(int port)
           
 void setSslMode(boolean sslEnabled)
           
 void setSslMode(boolean sslEnabled, boolean tlsEnabled)
           
 void setUsername(String username)
           
 void verify(MailMessage message)
          Verify the content of a mail message.
 

Field Detail

ROLE

static final String ROLE
Method Detail

getSmtpHost

String getSmtpHost()

setSmtpHost

void setSmtpHost(String host)

getSmtpPort

int getSmtpPort()

setSmtpPort

void setSmtpPort(int port)

getUsername

String getUsername()

setUsername

void setUsername(String username)

getPassword

String getPassword()

setPassword

void setPassword(String password)

isSslMode

boolean isSslMode()

isTlsEnabled

boolean isTlsEnabled()

setSslMode

void setSslMode(boolean sslEnabled)

setSslMode

void setSslMode(boolean sslEnabled,
                boolean tlsEnabled)

isDebugMode

boolean isDebugMode()

setDebugMode

void setDebugMode(boolean debugMode)

send

void send(MailMessage message)
          throws MailSenderException
Send a mail.

Throws:
MailSenderException

send

void send(String subject,
          String content,
          String toMailbox,
          String toName,
          String fromMailbox,
          String fromName)
          throws MailSenderException
Send a mail message.

Throws:
MailSenderException

send

void send(String subject,
          String content,
          String toMailbox,
          String toName,
          String fromMailbox,
          String fromName,
          Map extraHeaders)
          throws MailSenderException
Send a mail message.

Throws:
MailSenderException

verify

void verify(MailMessage message)
            throws MailSenderException
Verify the content of a mail message.

Throws:
MailSenderException


Copyright © 2001-2012 Codehaus. All Rights Reserved.