public class EmailNotificationChannel extends NotificationChannel
Constructor and Description |
---|
EmailNotificationChannel(EmailConfiguration configuration,
EmailTemplate[] templates,
UserFinder userFinder) |
Modifier and Type | Method and Description |
---|---|
void |
deliver(Notification notification,
String username)
Implements the delivery of the given notification to the given user.
|
void |
sendTestEmail(String toAddress,
String subject,
String message)
Send test email.
|
getKey, toString
public EmailNotificationChannel(EmailConfiguration configuration, EmailTemplate[] templates, UserFinder userFinder)
public void deliver(Notification notification, String username)
NotificationChannel
deliver
in class NotificationChannel
notification
- the notification to deliverusername
- the login of the user who should receive the notificationpublic void sendTestEmail(String toAddress, String subject, String message) throws org.apache.commons.mail.EmailException
org.apache.commons.mail.EmailException
- when unable to sendCopyright © 2009-2012 SonarSource. All Rights Reserved.