Marco, Rajeswari,
I have just created SYNCOPE-463 [1] for updating Notifications-related
pages in the wiki with latest improvements.
Regards.
[1] https://issues.apache.org/jira/browse/SYNCOPE-463
On 17/12/2013 21:09, Marco Di Sabatino Di Diodoro wrote:
Mail template code is not Groovy but Apache Velocity. Sorry for my mistake
Regards
Marco
------------------------------------------------------------------------
*Da: *"Marco Di Sabatino Di Diodoro" <[email protected]>
*A: *[email protected]
*Inviato: *Martedì, 17 dicembre 2013 17:52:56
*Oggetto: *Re: emailing
Hi,
Il giorno 17/dic/2013, alle ore 11:16, Rajeswari Raghunathan
<[email protected] <mailto:[email protected]>> ha
scritto:
Hi,
Is there any way we can configure syncope to send mail to the
admin and new user whenever a new user is created...
content should be there userid and password..
Which version of Apache Syncope should you use?
Apache Syncope 1.1.4:
Take a look at this pages [1] and [2].
Apache Syncope 1.1.5 or later:
First step you must create a new (and modify existing) template
messages to customize the body of notification messages.
In your template you can retrieve all attribute values with groovy.
This is a piece of code:
#foreach($inputObject in $input)
#if($inputObject.class.getSimpleName() == "UserTO")
$inputObject.getUsername()
## get Normal attribute
#foreach($attribute in $inputObject.getAttributes())
$attribute.getSchema():
$attribute.getValues()
#end
#end
#end
After you must perform the following steps to create a new
Notification Task:
1) Login to Apache Syncope console.
2) Go to Configuration/Notifications tab.
3) Create new notification.
4) Set Sender, Subject, Recipients e-mail attribute
type, Recipients e-mail attribute schema and Template.
5) Go to Events subtab and set the condition
[REST]:[UserController]:[]:[create]:[SUCCESS] (successful user create)
6) Click on About subtab and provide a condition to filter users
interested by the specified events.
7) Click on Recipients subtab and provide a condition that take
the interested user and Administrator to notify.
Regards
Marco
[1] https://cwiki.apache.org/confluence/display/SYNCOPE/Notifications
[2]
https://cwiki.apache.org/confluence/display/SYNCOPE/Manage+notification+e-mail+templates
Thanks.
--
Francesco Chicchiriccò
Tirasa - Open Source Excellence
http://www.tirasa.net/
ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/