Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

Email on Blocking User

+2 votes
75 views
asked Jul 26, 2017 in Plugins by Shrisun

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

Q2A version: 1.7.4

1 Answer

+3 votes
answered Jul 26, 2017 by Scott
selected Aug 25, 2017 by Shrisun
 
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.
...