cancel
Showing results for 
Search instead for 
Did you mean: 

Notificação por e-mail

bpmoall
Champ in-the-making
Champ in-the-making

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?

1 REPLY 1

abhinavmishra14
World-Class Innovator
World-Class Innovator

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.html
https://hub.alfresco.com/t5/alfresco-content-services-blog/creating-scheduled-job-in-alfresco/ba-p/2...

You would be required to set following properties in alfresco-global.properties in order to enable outbound email.

E.g.

mail.host=smtp.yourcompany.com
mail.port=25
mail.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);
~Abhinav
(ACSCE, AWS SAA, Azure Admin)