Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
362 views
in Plugins by

Can we send Email to the user when he/she is being blocked!

Q2A version: 1.7.4

1 Answer

+3 votes
by
selected by
 
Best answer

This can be done with an event plugin. The basic idea would be:

  1. Look for the 'u_block' event.
  2. Get the userid from $params['userid']
  3. Call qa_send_notification with the userid and email parameters. See the description of the function here for the other parameters.
...