Turn off email notifications when ad is posted

Discussion in 'Technical Support' started by EnergyFreak, Dec 19, 2011.

  1. EnergyFreak Customer

    What version of 68 Classifieds are you running?
    v4.2.3

    What template are you using?
    Custom

    Please describe in detail the issue you are having:

    Hi,

    I would like to stop receiving emails every time someone modifies or posts an ad on my website.

    Thanks.
  2. John Snyder Staff

    The notification setting is tied to new listings as well. If you still want those emails you'll need to edit

    includes/classes/kernel/Listings.php

    find:

    PHP:

    if ($rs['checkoutNotification'] == 'Y')
                {
                    
    $to ADMIN_EMAIL;
                    
    $content 'modifylisting.tpl';
                    
    $vars $data;
                    
    $Mailer->sendMail($to$content$vars);
                }
    and comment out the line that sends the mail like so:

    PHP:

    if ($rs['checkoutNotification'] == 'Y')
                {
                    
    $to ADMIN_EMAIL;
                    
    $content 'modifylisting.tpl';
                    
    $vars $data;
                    
    //$Mailer->sendMail($to, $content, $vars);
                
    }

Share This Page