Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Newsletter Manager - Error 2013 when I send.


dailce

Recommended Posts

When I use the Newsletter Manager I get Error 2013 when I send.

 

Is there a way to pause the code with the following:

 

tep_db_close();

tep_db_connect();

 

I think it is timing out because the database can't handle all the request at once or something.

 

Where can I place:

 

tep_db_close();

tep_db_connect();

Link to comment
Share on other sites

Here's what I added will this code cause problems, I think it worked, becasue it said emails sent but I didn't receive the email.

 

<?php
 } elseif ($action == 'confirm_send') {


   tep_db_close(); 
   tep_db_connect(); 

   $nID = tep_db_prepare_input($HTTP_GET_VARS['nID']);
   $newsletter_query = tep_db_query("select newsletters_id, title, content, module from " . TABLE_NEWSLETTERS . " where newsletters_id = '" . (int)$nID . "'");
   $newsletter = tep_db_fetch_array($newsletter_query);

   $nInfo = new objectInfo($newsletter);

   include(DIR_WS_LANGUAGES . $language . '/modules/newsletters/' . $nInfo->module . substr($PHP_SELF, strrpos($PHP_SELF, '.')));
   include(DIR_WS_MODULES . 'newsletters/' . $nInfo->module . substr($PHP_SELF, strrpos($PHP_SELF, '.')));
   $module_name = $nInfo->module;
   $module = new $module_name($nInfo->title, $nInfo->content);
?>

Link to comment
Share on other sites

Ok, well I reverted back to the original Newletters.php file and tried sending again and again it said "Finished sending email"

 

But I did not get the email, is there a delay in sending a newsletter or is it instant?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...