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

Email notifications working:

  • When new question is raised, I get the email as I am part of Admin group.
  • When some one answers/comments question raised by me, I get the email.

Email notifications not working:

  • When some one answered/commented the favorite question. 
  • When some one raised a question to the favorite category/Tag.

Looks like Category/Tag email notifications are not working.

Set up information:

PHP 7
V 1.8.6

Apache web server

Leverages following additional Question2Answer plugins:

  • q2a-email-notification
  • q2a-express-editor
  • q2a-code-prettify
  • q2a-google-search
Q2A version: 1.8.6

1 Answer

0 votes
by

q2a-email-notification by Amiya Sahu no longer works.

I made some changes to make it work.  The basic change you need is in file qa-email-notifications-event.php:

@@ -120,18 +123,20 @@ class qa_email_notifications_event {

             if ($qa_notifications_suspended > 0) return false;

             require_once QA_INCLUDE_DIR . 'qa-db-selects.php';
             require_once QA_INCLUDE_DIR . 'qa-util-string.php';
+            require_once QA_INCLUDE_DIR . 'app/emails.php';

             $subs['^site_title'] = qa_opt('site_title');
             $subs['^handle']     = $handle;
             $subs['^email']      = $email;
             $subs['^open']       = "\n";
             $subs['^close']      = "\n";

-            return $this->category_email_send_email(array(
+            return qa_send_email(array(
                         'fromemail' => qa_opt('from_email'),
                         'fromname'  => qa_opt('site_title'),
                         'toemail'   => $email,
                         'toname'    => $handle,
                         'bcclist'   => $bcclist,

You can also remove the category_email_send_email() function from this file.

I've made some more changes, mostly cosmetic.  But I believe the above change should be sufficient to send the emails.

by
Thank you..Will give a try with these changes.
by
I made changes as suggested and it didn't resolved the issue. I tested a use case by flagging a specific question as favorite but I didn't receive the email when there is a new comments/answers were provided.
...