Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
2.0k views
in Q2A Core by
edited by
Currently I have got a good user base. I do not have category set. I am looking for a code where I can trigger an email when a new question is posted.

Mote details:

Currently only the email which is set up as an email address for admin messages will receive an email when a new question is posted. I have created a mailing list handled by different provider. All I have to do is, whenever a new question is posted (I do not care what category or tag it is), send it to the provider. Provider will take care of distributing it to the mailing list.

What code should I trigger?

Hope I am clear.
Q2A version: 1.7.4

1 Answer

+2 votes
by
selected by
 
Best answer

As I mentioned in an answer to a very similar question some days ago, you could simply create a plugin with an event module, listen (in your case) just to the q_post event and send the email to whomever you consider appropriate.

by
thank you :) that was really helpful.
...