View Single Post

Old 09-02-2008   #3 (permalink)
Dmitry Y.
Junior Member
 
Join Date: Jun 2008
Posts: 4
Dmitry Y. is on a distinguished road
Default Re: Suggest Listing Mail Issue

Hi guys,
Sorry for delay with it. Unfortunately mailing system in the directory package has not been finished completely. We implemented some parts of the mailing functionality for future reason, but it sometimes produces problems like this.
You able to fix it directly via code.
***Open packages\directory\includes\classes\sbr.admin.list ing.php and find functionn insert :***
PHP Code:
    function insert($aListing
***In the function find code***
PHP Code:
        if($aListing['email'] && $notify)
        {
            
$config    = &sbrConfig::instance();    
            
$action    $config->get('auto_approval') ? "listing_approve" 'listing_submit';

            
$event     = array(
                
"type"=> SBR_EMAIL_NOTIFY,
                
"action" => $action,
                
"params" => array(
                    
"rcpts"=> array($aListing['email']),
                    
"listing"=> $aListing,
                    
"path"=> $category['path'],
                    
"category_id" => $aListing['category_id']
                )
            );
            
$config->notify($event);
        } 
***Remove or comment out it***

Sorry for inconvenience. And of course, it will be fixed in the next version.
Dmitry Y. is offline   Reply With Quote