Hello People,
I have codified a listener that are listening actions of creation and edition of the page,
in "on event" method I send an email to specifics users. When I create a page
the listener works well and the email is sent, however when I update the page, the xwiki
returns me the following error:
2014-03-12 14:43:20,841
[
http://wiki.scl.corp/bin/view/Blog/Publisher?entryName=Blog+de+Processos.Su…]
ERROR c.x.x.p.m.MailSenderPlugin - No mail object found in the document MailTemplate :
Aviso de Publicacao Post
The funny is that the same Mailtemplate and code is used for both kind of events.
I am using the a listener based on this one:
http://platform.xwiki.org/xwiki/bin/download/DevGuide/GroovyNotificationTut…
Any idea?
Danilo
Grupo Energisa
Danilo A. Oliveira
Analista Suporte Aplicacao TI - DPTO CORP. DE INFRAESTR. TI
e-mail: danilo.oliveira(a)energisa.com.br | tel: (32) 3429-6342 | cel: (32) 8452-9478
Esta mensagem contém informação confidencial. Se você a recebeu por engano, não divulgue
ou copie seu conteúdo. Por favor, avise ao remetente imediatamente e apague-a do
computador.
Privileged and confidential. If this message has been received by mistake, do not disclose
or copy its contents. Please notify sender and delete immediately.