add a "send email" user Action

Hello,

I simply want to add a “send email” button with Nuxeo Studio, just like here :

alt text

I added an XML extension with :

<extension target="org.nuxeo.ecm.platform.actions.ActionService" point="actions">
    <action icon="/icons/mail.png" id="sendEmail" label="action.email.document" link="send_email" order="17" enabled="true" >
      <category>DOCUMENT_UPPER_ACTION</category>
    </action>
</extension>

==> the button appears, but no email is sent :(

Do you have any idea why ?

Thank you

0 votes

1 answers

1864 views

ANSWER



Ok, I managed to do it with this code :

<extension target="org.nuxeo.ecm.platform.actions.ActionService" point="actions"> 
   <action id="sendNotificationEmail" enabled="true" />

      <action id="sendNotificationEmail" link="send_notification_email" enabled="true" order="17" label="action.email.document" icon="/icons/mail.png"> 

      <category>DOCUMENT_UPPER_ACTION</category> 

   </action>   
</extension> 

==> I replaced send_email with send_notification_email

Thanks ! ;-)

0 votes