flash[:error] = message('email_configuration.test.to_address_required')
else
begin
- java_facade.getComponentByClassname('emailnotifications', 'org.sonar.plugins.emailnotifications.EmailNotificationChannel').sendTestEmail(to_address, subject, message)
+ java_facade.getCoreComponentByClassname('org.sonar.server.notifications.email.EmailNotificationChannel').sendTestEmail(to_address, subject, message)
flash[:notice] = message('email_configuration.test.email_was_sent_to_x', :params => [to_address])
rescue Exception => e
flash[:error] = e.message
private
def configuration
- java_facade.getComponentByClassname('emailnotifications', 'org.sonar.api.config.EmailSettings').class
+ java_facade.getCoreComponentByClassname('org.sonar.api.config.EmailSettings').class
end
def properties