Ignore:
Timestamp:
11/05/07 21:44:44 (5 years ago)
Author:
hverton
Message:

Modified the SMTP module so that no email is send to deactivated or suspended member accounts, or member accounts which an invalid email address.
Modified the POP3 module so that no email is send to deactivated or suspended member accounts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/common/mail2forum/php-files/modules/mail2forum/m2f_smtp.php

    r890 r1061  
    306306                // get all subscribed users for this forum 
    307307                $result2 = dbquery("SELECT u.*, c.* FROM ".$db_prefix."users u, ".$db_prefix."M2F_subscriptions s, ".$db_prefix."M2F_config c  
    308                     WHERE s.m2f_forumid = '".$postrecord['forum_id']."' AND s.m2f_subscribed = '1' AND u.user_id = s.m2f_userid AND u.user_id = c.m2f_userid"); 
     308                    WHERE s.m2f_forumid = '".$postrecord['forum_id']."' AND s.m2f_subscribed = '1' AND u.user_status = 0 AND u.user_bad_email = 0 AND u.user_id = s.m2f_userid AND u.user_id = c.m2f_userid"); 
    309309                while ($recipient = dbarray($result2)) { 
    310310                    if (M2F_SMTP_DEBUG) logdebug('RECIPIENT', print_r($recipient, true)); 
     
    312312                    // get the senders profile (need the email address and the email-hidden flag) 
    313313                    if ($edit_post) { 
    314                         // check of automatic or system posts 
     314                        // check for automatic or system posts 
    315315                        if ($postrecord['post_edituser'] != 0) { 
    316316                            $poster = dbarray(dbquery("SELECT user_name, user_fullname, user_email, user_hide_email FROM ".$db_prefix."users WHERE user_id = '".$postrecord['post_edituser']."'")); 
Note: See TracChangeset for help on using the changeset viewer.