public class FreeMarkerEmailSender extends Object implements EmailSender
| Constructor and Description |
|---|
FreeMarkerEmailSender(ServiceProperties inServiceProperties,
javax.mail.Session inSession)
Default constructor, creates a FreeMarker configuration object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
sendActivationMessage(UserEntity inUser)
Send an activation email to the user.
|
void |
sendPasswordChangeMessage(UserEntity inUser)
Send a password change email to the user.
|
void |
sendPasswordResetMessage(UserEntity inUser,
String inNewPassword)
Send a password reset email to the user.
|
void |
sendVerificationMessage(UserEntity inUser)
Sends a verification email.
|
@Inject public FreeMarkerEmailSender(ServiceProperties inServiceProperties, javax.mail.Session inSession)
inServiceProperties - The application configuration object.inSession - The mail session to use when sending a message.public void sendVerificationMessage(UserEntity inUser) throws EmailException
sendVerificationMessage in interface EmailSenderinUser - The user to verify.EmailExceptionpublic void sendActivationMessage(UserEntity inUser) throws EmailException
EmailSendersendActivationMessage in interface EmailSenderinUser - To whom the email should be sent.EmailException - Thrown if the email can not be sent for any
reason.public void sendPasswordChangeMessage(UserEntity inUser) throws EmailException
EmailSendersendPasswordChangeMessage in interface EmailSenderinUser - To whom the email should be sent.EmailException - Thrown if the email can not be properly sent.public void sendPasswordResetMessage(UserEntity inUser, String inNewPassword) throws EmailException
EmailSendersendPasswordResetMessage in interface EmailSenderinUser - The user who is requesting the password reset.inNewPassword - The new password, before hashing.EmailException - Thrown if the email can not be sent for any
reason.Copyright © 2012–2016 Emory University. All rights reserved.