org.ploin.pmf
Interface IMailSender

All Known Implementing Classes:
MailSender

public interface IMailSender

Description: This class is responsible for sending the e-mails

$LastChangedBy: r.reiz $
$Revision: 77 $
$Date: 2010-03-15 13:13:45 +0100 (Mon, 15 Mar 2010) $


Method Summary
 IPropertiesLoader getPropertiesLoader()
           
 SendingResult sendMail(String plain, String html, MailConfig mailConfig, ServerConfig serverConfig, Map<String,String> map)
          This method sends the mail.
 void setPropertiesLoader(IPropertiesLoader propertiesLoader)
          Set the ProperitesLoader which should be used to read properties from the config files.
 

Method Detail

sendMail

SendingResult sendMail(String plain,
                       String html,
                       MailConfig mailConfig,
                       ServerConfig serverConfig,
                       Map<String,String> map)
                       throws MailFactoryException
This method sends the mail.

Parameters:
plain - - the plain mail message.
html - - the html mail message.
mailConfig - - the mail config object.
serverConfig - - the server config object.
map - - the map containing embeds and attachements
Returns:
An Object array with two elements. The first Element is the String given back by the commons-email API email.send(). The second Element is the send mail as MimeMessage.
Throws:
MailFactoryException

getPropertiesLoader

IPropertiesLoader getPropertiesLoader()
Returns:
the PropertiesLoader used to read the config properties file.

setPropertiesLoader

void setPropertiesLoader(IPropertiesLoader propertiesLoader)
Set the ProperitesLoader which should be used to read properties from the config files.

Parameters:
propertiesLoader - - the new PropertiesLoader


Copyright © 2012 PLOIN GmbH. All Rights Reserved.