Page 1 of 1
Email notification on SelfRegistration anothergroup action
Posted: Mon May 16, 2016 12:09 am
by nikkio
Hi,
I need to send a notification email to the client, when a user add himself to another FEU group with Selfregistration module...
There is a way to achieve that?
Can you point me in the right direction?...
Any help is appreciated...
.nicola
Re: Email notification on SelfRegistration anothergroup acti
Posted: Mon May 16, 2016 9:32 am
by Rolf
Isnt that a default setting/feature in SelfRef?
If not, you can use a mail UDT and an event to trigger a mail
A mail UDT:
http://docs.cmsmadesimple.org/general-i ... s#mail-udt Need to be changed for your purpose of course
Re: Email notification on SelfRegistration anothergroup acti
Posted: Mon May 16, 2016 9:40 am
by nikkio
Hi Rolf,
thank you for replying,
I've checked and the notification is sent when a new user complete the registration process, not when he register for a new group.
I was thinking also about a UDT triggered by an event... but which event?
I've found only "onNewUser" and "onUserRegistered" regarding selfreg...
.nicola
Re: Email notification on SelfRegistration anothergroup acti
Posted: Tue May 17, 2016 8:12 am
by Rolf
nikkio wrote:... not when he register for a new group.
I think this isnt a job for SelfReg, but for FEU. The user is already registrered and changes his account data in FEU. So you might check the events there... Not sure it is possible though.
Re: Email notification on SelfRegistration anothergroup acti
Posted: Tue May 17, 2016 11:00 am
by nikkio
In SelfReg there is an action called "anothergroup" to add user to another group so i used this function.
I've found in the Another Group Template this if statement
Code: Select all
{if isset($final_message)}
...
{else}
...
{/if}
so i put the UDT call in this statement and it works
thank for the link to the UDT!
.nicola