Jump to content

Review spam


stevensonplumbing

Recommended Posts

Is there a way to disable the automatic email that get's sent to the cubecart admin every time a review needs approved (ver 5.2.16) ?

 

I'm getting more than a few spam reviews (1,000+ per week). For a long time, I set my email inbox filter to just delete the approval messages, though now my email provider thinks that there are so many messages (with suspect content) that I must be sending spam.

 

I've had to temporarily turn off the review function to stop the emails coming in, though obviously that means my reviews arn't visible to the public anymore.

 

The reviews themselves are easy to deal with and delete, that's not the problem, I just don't want the confirmation emails being sent to me (1000 per week is one every ten minutes).

 

Any ideas ? I'm guessing it's just a line of code that needs deleted.

 

Mike.

 

Link to comment
Share on other sites

In the file /classes/cubecart.class.php, near line 2266, find:

                    $GLOBALS['gui']->setNotify($GLOBALS['language']->catalogue['notify_review_submit']);
                    $mail                    = Mailer::getInstance();
                    $record['link']         = $GLOBALS['storeURL'].'/'.$GLOBALS['config']->get('config','adminFile').'?_g=products&node=reviews&edit='.$GLOBALS['db']->insertid();
                    $record['product_name']    = $product['name'];
                    $content                = $mail->loadContent('admin.review_added', $GLOBALS['language']->current(), $record);
                    if (!empty($content)) {
                        $mail->sendEmail($GLOBALS['config']->get('config', 'email_address'), $content);
                    }

Try supressing the email by making the sendEmail() statement a comment:

                    //  $mail->sendEmail($GLOBALS['config']->get('config', 'email_address'), $content);

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...