mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
I18N test message sent success message.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@47503 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -26,6 +26,8 @@ email.server.err.incorrect_message_part=Incorrect message part: {0}
|
|||||||
|
|
||||||
email.outbound.err.send.failed=Failed to send email to: {0} cause {1}
|
email.outbound.err.send.failed=Failed to send email to: {0} cause {1}
|
||||||
|
|
||||||
|
email.outbound.test.send.success=Sent test message to: {0}
|
||||||
|
|
||||||
email.outbound.err.test.no.to=Unable to send test message 'testMessageTo' is empty
|
email.outbound.err.test.no.to=Unable to send test message 'testMessageTo' is empty
|
||||||
email.outbound.err.test.no.subject=Unable to send test message 'subject' is empty
|
email.outbound.err.test.no.subject=Unable to send test message 'subject' is empty
|
||||||
email.outbound.err.test.no.text=Unable to send test message 'text' is empty
|
email.outbound.err.test.no.text=Unable to send test message 'text' is empty
|
||||||
|
@@ -248,6 +248,11 @@ public class MailActionExecuter extends ActionExecuterAbstractBase
|
|||||||
this.testMessageTo = testMessageTo;
|
this.testMessageTo = testMessageTo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getTestMessageTo()
|
||||||
|
{
|
||||||
|
return testMessageTo;
|
||||||
|
}
|
||||||
|
|
||||||
public void setTestMessageSubject(String testMessageSubject)
|
public void setTestMessageSubject(String testMessageSubject)
|
||||||
{
|
{
|
||||||
this.testMessageSubject = testMessageSubject;
|
this.testMessageSubject = testMessageSubject;
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
package org.alfresco.repo.action.executer;
|
package org.alfresco.repo.action.executer;
|
||||||
|
|
||||||
import org.alfresco.error.AlfrescoRuntimeException;
|
import org.alfresco.error.AlfrescoRuntimeException;
|
||||||
|
import org.springframework.extensions.surf.util.I18NUtil;
|
||||||
|
|
||||||
public class MailActionExecuterMonitor
|
public class MailActionExecuterMonitor
|
||||||
{
|
{
|
||||||
@@ -11,7 +12,9 @@ public class MailActionExecuterMonitor
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
mailActionExceuter.sendTestMessage();
|
mailActionExceuter.sendTestMessage();
|
||||||
return "email message sent";
|
Object[] params = {mailActionExceuter.getTestMessageTo()};
|
||||||
|
String message = I18NUtil.getMessage("email.outbound.test.send.success", params);
|
||||||
|
return message;
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
(AlfrescoRuntimeException are)
|
(AlfrescoRuntimeException are)
|
||||||
|
Reference in New Issue
Block a user