• Resolved Ciprian

    (@cipriandoroftei)


    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/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Bob

    (@prasunsen)

    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

    (@cipriandoroftei)

    For some reason, emails are sent to all addresses (settings one and the set quiz one)

    Plugin Author Bob

    (@prasunsen)

    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

    (@cipriandoroftei)

    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

    (@prasunsen)

    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.