Package org.kuali.rice.kcb.service.impl
Class EmailServiceImpl
java.lang.Object
org.kuali.rice.kcb.service.impl.EmailServiceImpl
- All Implemented Interfaces:
EmailService
This class is responsible for implementing the service that sends emails to individuals.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsendEmail(MessageDelivery messageDelivery, String recipientEmailAddress, String emailFormat) First constructs the appropriately formatted mail message then sends it off.voidsetDefaultSender(String defaultSender) Sets the default sender address to use if no valid producer email address was specified in the messagevoidvoidSets the weburl attribute value (injected from Spring).
-
Constructor Details
-
EmailServiceImpl
public EmailServiceImpl()
-
-
Method Details
-
setMailer
-
setWeburl
Sets the weburl attribute value (injected from Spring).- Parameters:
weburl-
-
setDefaultSender
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:
sendEmailin interfaceEmailService- Parameters:
messageDelivery-recipientEmailAddress-emailFormat-- Returns:
- Long - the id of the email message
- Throws:
Exception- See Also:
-