Title: Notification mails
Last modified: August 31, 2016

---

# Notification mails

 *  Resolved [Ciprian](https://wordpress.org/support/users/cipriandoroftei/)
 * (@cipriandoroftei)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/notification-mails-1/)
 * Hi,
 * How can I stop the notification e-mail being sent to the address in the WP Settings
   page and just notify the email address set for each quiz?
 * Now even though I’ve set the notification email address in each quiz, emails 
   are also sent to the WP Settings email address.
 * [https://wordpress.org/plugins/watu/](https://wordpress.org/plugins/watu/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Bob](https://wordpress.org/support/users/prasunsen/)
 * (@prasunsen)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/notification-mails-1/#post-7023181)
 * If you enter email address in the Edit quiz page, the admin email is sent to 
   only that address, not to the one in the WP Settings page. I double and triple
   checked it.
 *  Thread Starter [Ciprian](https://wordpress.org/support/users/cipriandoroftei/)
 * (@cipriandoroftei)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/notification-mails-1/#post-7023257)
 * For some reason, emails are sent to all addresses (settings one and the set quiz
   one)
 *  Plugin Author [Bob](https://wordpress.org/support/users/prasunsen/)
 * (@prasunsen)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/notification-mails-1/#post-7023260)
 * I can’t reproduce this and nothing in the code would allow it. There might be
   other plugin that catches outgoing emails and sends them to the admin.
 *  Thread Starter [Ciprian](https://wordpress.org/support/users/cipriandoroftei/)
 * (@cipriandoroftei)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/notification-mails-1/#post-7023306)
 * Please check this out:
 * You have this checkbox:
    _Notify me when someone takes this quiz (the email goes
   to the address given in your WordPress Settings page)._
 * If I check that then this is visible:
    _Email address(es) to notify: [input field]_
 * Why is it set up like this. If I check the field I am able to add the email address
   that I want to be notified, but by doing so the _notiy\_admin_ variable becomes
   1 so in your code then notify also the admin ($admin_email = get_option(‘admin_email’);)
 * Update: if _notiy\_admin_ is not checked, no email is sent to the admin at all.
   So yup maybe some other plugin is interfering, but the weird part is that it’s
   not happening for all test takers emails.
 *  Plugin Author [Bob](https://wordpress.org/support/users/prasunsen/)
 * (@prasunsen)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/notification-mails-1/#post-7023312)
 * As I said, I can’t reproduce this. If you look carefully at the code you’ll see
   admin email from WP Settings page is used only if no other email is provided:
 *     ```
       $admin_emails = array();
       if(!empty($exam->notify_email)) {
       	$emails = explode(',', $exam->notify_email);
       	foreach($emails as $email) $admin_emails[] = trim($email);
       }
       else $admin_emails[] = $admin_email;
       ```
   

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Notification mails’ is closed to new replies.

 * ![](https://ps.w.org/watu/assets/icon-128x128.png?rev=1680960)
 * [Watu Quiz](https://wordpress.org/plugins/watu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/watu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/watu/)
 * [Active Topics](https://wordpress.org/support/plugin/watu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/watu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/watu/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Bob](https://wordpress.org/support/users/prasunsen/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/notification-mails-1/#post-7023312)
 * Status: resolved