Class UserAddedNotificationMailer
java.lang.Object
com.atlassian.crowd.manager.mailer.notification.UserAddedNotificationMailer
Responsible for creating and sending email notifications to users created in Crowd
- Since:
- 5.2.0
-
Constructor Summary
ConstructorDescriptionUserAddedNotificationMailer
(MailManager mailManager, MailTemplateRenderer mailTemplateRenderer, EmailMessageFactory emailMessageFactory, I18nHelper i18nHelper, PropertyManager propertyManager, ForgottenLoginManager forgottenLoginManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Sends a notification to a new Crowd user.
-
Constructor Details
-
UserAddedNotificationMailer
public UserAddedNotificationMailer(MailManager mailManager, MailTemplateRenderer mailTemplateRenderer, EmailMessageFactory emailMessageFactory, I18nHelper i18nHelper, PropertyManager propertyManager, ForgottenLoginManager forgottenLoginManager)
-
-
Method Details
-
sendUserAddedNotification
public void sendUserAddedNotification(User user) throws InvalidEmailAddressException, MailSendException Sends a notification to a new Crowd user. Can contain a link under which the new user can set their password- Parameters:
user
- the user to be notified. must not be null- Throws:
InvalidEmailAddressException
- if the email address of the user is not validMailSendException
- if there was an error while sending the email message
-