Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
in Q2A Core by
I am using one category of my Q/A site to manage feature requests. Once I implement a feature request I would like to notify all of the users that voted for that feature.   How can I do that.

Alternately I would like to send an email notification to all users that voted on a question when there is a new answer.

1 Answer

+2 votes

You'd need an event plugin that looks for the 'a_post' event (when an answer is posted).

In the $params array you can get the question ID from $params['parentid'], and then you'll have to find the userids that voted on that question from the qa_uservotes table.

Then you can get all the users from the qa_users table, look for their email address and call qa_send_notification. See here for a description of that function.

Thank you that was very helpful.