As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Pessoal, alguém pode me dizer se é possível receber notificacões por email quando uma tarefa - lista de tarefas e não tiver fluxo de trabalho - para designar um usuário e também quando tiver um novo tópico nas discussões?
I am not completely sure whether this is possible out of the box but You can implement a scheduled job to achieve this requirement. You can check the user's tasks and if the count is 0, send the email notification using MailActionExecutor.
You can refer this documentation which can guide you about implementing a scheduled job:
https://docs.alfresco.com/5.2/references/dev-extension-points-scheduled-jobs.htmlhttps://hub.alfresco.com/t5/alfresco-content-services-blog/creating-scheduled-job-in-alfresco/ba-p/288466
You would be required to set following properties in alfresco-global.properties in order to enable outbound email.
E.g.
mail.host=smtp.yourcompany.commail.port=25mail.encoding=UTF-8
Refer doc: https://docs.alfresco.com/6.1/concepts/email.html
Sample code to send email:
ActionService actionService = serviceRegistry.getActionService(); Action mailAction = actionService.createAction(MailActionExecuter.NAME); mailAction.setParameterValue(MailActionExecuter.PARAM_SUBJECT, subject); mailAction.setParameterValue(MailActionExecuter.PARAM_TO, email); actionService.executeAction(mailAction, null);