org.kuali.rice.kcb.service.impl
Class EmailServiceImpl

java.lang.Object
  extended by org.kuali.rice.kcb.service.impl.EmailServiceImpl
All Implemented Interfaces:
EmailService

public class EmailServiceImpl
extends Object
implements EmailService

This class is responsible for implementing the service that sends emails to individuals.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
EmailServiceImpl()
           
 
Method Summary
 Long sendEmail(MessageDelivery messageDelivery, String recipientEmailAddress, String emailFormat)
          First constructs the appropriately formatted mail message then sends it off.
 void setDefaultSender(String defaultSender)
          Sets the default sender address to use if no valid producer email address was specified in the message
 void setMailer(Mailer mailer)
           
 void setWeburl(String weburl)
          Sets the weburl attribute value (injected from Spring).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailServiceImpl

public EmailServiceImpl()
Method Detail

setMailer

public void setMailer(Mailer mailer)

setWeburl

public void setWeburl(String weburl)
Sets the weburl attribute value (injected from Spring).

Parameters:
weburl -

setDefaultSender

public void setDefaultSender(String defaultSender)
Sets the default sender address to use if no valid producer email address was specified in the message

Parameters:
defaultSender - the default sender address to use if no valid producer email address was specified in the message

sendEmail

public Long sendEmail(MessageDelivery messageDelivery,
                      String recipientEmailAddress,
                      String emailFormat)
               throws Exception
First constructs the appropriately formatted mail message then sends it off.

Specified by:
sendEmail in interface EmailService
Returns:
Long - the id of the email message
Throws:
Exception
See Also:
org.kuali.rice.kcb.service.EmailService#sendNotificationEmail(org.kuali.rice.kcb.bo.MessageDelivery, java.lang.String, java.lang.String)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.