org.ploin.pmf.impl
Class MailSender
java.lang.Object
org.ploin.pmf.impl.MailSender
- All Implemented Interfaces:
- java.io.Serializable, IMailSender
public class MailSender
- extends java.lang.Object
- implements java.io.Serializable, IMailSender
Description: Implementation of the IMailSender interface.
This class is responsible to send the e-mails.
........
.WHHUUVOOOOU&,
dMMMMMMMMMMMa, .MMMMF .MHW0Oz+!``````?G. .MMMM% .MMMMMMMMMMMN,
.MMMMMMMMMMMMMMr JMMMM JHHXwOz;:^..``` `O, JMMM# dMMMMMMMMMMMMN
JMMM# ,MMMMF MMMMF .MHVXwOz++.^.```` +n .MMMM$ .MMMMt dMMM#
.MMMMt .MMMMt .MMMM! JMHWWXwOz++.... `.+X JMMMM JMMMM .MMMM%
JMMM# .MMMM@ dMMM# ,MHHWWXwOzz+++....?df MMMMF .MMMMF JMMM#
.MMMMNNNNNMMMMMD MMMMMNNm 4MHHWWXXwOOzzz1+1wX'.MMMM! .MMMM` .MMMM$
.MMMMMMMMMMMM"` .YMMMMMF TMHHHWWWXXXwwwwXK! MMMMF MMMMF JMMMM
MMMMF TMMHHHHHWWWHY^
.MMMM' `7""""^`
dMMM#
$HeadURL: https://ploinscm.de/svn/ploinMailFactory/trunk/src/main/java/org/ploin/pmf/impl/MailSender.java $
$LastChangedBy: r.reiz $
$Revision: 66 $
$Date: 2009-12-08 12:03:04 +0100 (Tue, 08 Dec 2009) $
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MailSender
public MailSender()
sendMail
public SendingResult sendMail(java.lang.String plain,
java.lang.String html,
MailConfig mailConfig,
ServerConfig serverConfig,
java.util.Map<java.lang.String,java.lang.String> map)
- Description copied from interface:
IMailSender
- This method sends the mail.
- Specified by:
sendMail in interface IMailSender
- 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.
getPropertiesLoader
public IPropertiesLoader getPropertiesLoader()
- Specified by:
getPropertiesLoader in interface IMailSender
- Returns:
- the PropertiesLoader used to read the config properties file.
setPropertiesLoader
public void setPropertiesLoader(IPropertiesLoader propertiesLoader)
- Description copied from interface:
IMailSender
- Set the ProperitesLoader which should be used to read properties from
the config files.
- Specified by:
setPropertiesLoader in interface IMailSender
- Parameters:
propertiesLoader - - the new PropertiesLoader
Copyright © 2009 PLOIN GmbH. All Rights Reserved.