lumis.portal.sendmail.smtp
Class SmtpMailSender

Package class diagram package SmtpMailSender
java.lang.Object
  extended by lumis.portal.sendmail.smtp.SmtpMailSender
All Implemented Interfaces:
IMailSender

public class SmtpMailSender
extends Object
implements IMailSender

Sends an e-mail using a SMTP connection.

Since:
4.0.4

Constructor Summary
SmtpMailSender()
           
 
Method Summary
protected  Collection<String> getEmailDestinationStringAsCollection(String destination)
          Translates an email destination string into a collection of Strings, each one contaning an email destination.
protected  IMailConfig getMailConfig()
          Returns the MailConfig with the configurations to be used when sending the e-mail.
 void sendMail(SessionConfig sessionConfig, ISingleMail mail, ITransaction transaction)
          Sends a mail.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmtpMailSender

public SmtpMailSender()
Method Detail

sendMail

public void sendMail(SessionConfig sessionConfig,
                     ISingleMail mail,
                     ITransaction transaction)
              throws PortalException
Description copied from interface: IMailSender
Sends a mail.

Specified by:
sendMail in interface IMailSender
Parameters:
sessionConfig - the user session information
mail - information about the mail to be sent.
transaction - the transaction for persistence access.
Throws:
PortalException - if it was not possible to send the mail.

getMailConfig

protected IMailConfig getMailConfig()
                             throws PortalException
Returns the MailConfig with the configurations to be used when sending the e-mail.

Returns:
the MailConfig.
Throws:
PortalException - if the MailConfig could not be obtained.
Since:
4.0.4

getEmailDestinationStringAsCollection

protected Collection<String> getEmailDestinationStringAsCollection(String destination)
Translates an email destination string into a collection of Strings, each one contaning an email destination. The email destination string may contain several emails separated by comma or semi-colon.

Parameters:
destination - the email destination string.
Returns:
a collection of strings, where each string is one email in the given email destination string.
Since:
4.0.4


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.