[ 
http://jira.nuxeo.org/browse/NXP-1781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Narcis Paslaru  resolved NXP-1781.
----------------------------------

    Resolution: Fixed

The signature is :

public void sendDocumentByMail(DocumentModel doc,
            String freemarkerTemplateName, String subject, String comment,
            NuxeoPrincipal sender, List<String> sendTo)

freemarkerTemplateName - is the name of template used in the contribution that 
registers the templates

example :     <template name="defaultNotifTemplate" 
src="templates/defaultNotifTemplate.ftl" />
                  In this case defaultNotifTemplate should be used as 
parameter. It will also be used by default if freemarkerTemplateName is null.



> sendByMail
> ----------
>
>                 Key: NXP-1781
>                 URL: http://jira.nuxeo.org/browse/NXP-1781
>             Project: Nuxeo Enterprise Platform 5
>          Issue Type: New Feature
>    Affects Versions: 5.1.2
>            Reporter: Alain Escaffre
>            Assignee: Narcis Paslaru 
>            Priority: Critical
>             Fix For: 5.1.3
>
>
> There should be a method in the notification service to send an e-mail 
> directly, without the use of an event. This method should have the following 
> signature : 
> -sendDocumentByEmail(DocumentModel doc, String freemarkerTemplateName, String 
> commentaire, NuxeoPrincipal sender, StringList sendto)
> Both DocumentModel and commentaire would be accessible to the freemarker 
> template, to be able to send mail like : 
> M TOTO  wants you to see the folowing document :  linkTodocument
> "hello !
> Have a look at this please !"
> PS : The StringList should contain the emails of people to send to. If you 
> think it is better an ArrayList or I don't know what, feel free ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to