com.atlassian.crowd.manager.mail
Class MailManagerImpl

java.lang.Object
  extended by com.atlassian.crowd.manager.mail.MailManagerImpl
All Implemented Interfaces:
MailManager

public class MailManagerImpl
extends java.lang.Object
implements MailManager


Constructor Summary
MailManagerImpl(PropertyManager propertyManager, javax.naming.InitialContext initialContext, I18nHelper i18nHelper)
           
 
Method Summary
 void sendEmail(javax.mail.internet.InternetAddress emailAddress, java.lang.String subject, java.lang.String body)
          Sends an email using the configured mail server (remote host / JNDI).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailManagerImpl

public MailManagerImpl(PropertyManager propertyManager,
                       javax.naming.InitialContext initialContext,
                       I18nHelper i18nHelper)
Method Detail

sendEmail

public void sendEmail(javax.mail.internet.InternetAddress emailAddress,
                      java.lang.String subject,
                      java.lang.String body)
               throws MailSendException
Description copied from interface: MailManager
Sends an email using the configured mail server (remote host / JNDI).

Specified by:
sendEmail in interface MailManager
Parameters:
emailAddress - address of recipient.
subject - subject header. Will be appended with the configured mail subject prefix in the final email.
body - email body text.
Throws:
MailSendException - an error occured sending the email.


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.