Forum Discussion
Parshant
8 years agoBoss
Hi Shivshankar
In the above code you also have to request users userid parameter for the user u want to send email, for more information I have added example code below:
<#assign userId = http.request.parameters.name.get("userId","") />
<#assign msgToken = http.request.parameters.name.get("token","") />
<#assign msgEvent = http.request.parameters.name.get("event.type","") />
<#assign msgNode = http.request.parameters.name.get("message","") />
<#assign responses = restadmin("postoffice/notes/send?notes.recipient=/users/id/${userId}¬es.subject=Testing¬es.note=${msgToken}+${msgNode}") />
<#list responses as response>
${response.@status}
</#list>
You can also add this to an endpont and a make call endpoint by passing the requested parameters.
In the above code you also have to request users userid parameter for the user u want to send email, for more information I have added example code below:
<#assign userId = http.request.parameters.name.get("userId","") />
<#assign msgToken = http.request.parameters.name.get("token","") />
<#assign msgEvent = http.request.parameters.name.get("event.type","") />
<#assign msgNode = http.request.parameters.name.get("message","") />
<#assign responses = restadmin("postoffice/notes/send?notes.recipient=/users/id/${userId}¬es.subject=Testing¬es.note=${msgToken}+${msgNode}") />
<#list responses as response>
${response.@status}
</#list>
You can also add this to an endpont and a make call endpoint by passing the requested parameters.
Related Content
- 4 years ago
- 8 years ago