Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

php.ini & sendmail.ini on shared hosting question


steffanih

Recommended Posts

Is there a way to keep email settings from conflicting when you are using shared hosting?

 

On one domain I have two websites. The php.ini and sendmail.ini are set for one. When I add these files to the other domain, it throws off the settings on the other so both will not work. I can only receive orders and emails from one or the other.

 

Thanks!

Link to comment
Share on other sites

simply replace the oscommerce function tep_mail() to php default function mail() and I can guarantee that you will fix the mail issue.

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

simply replace the oscommerce function tep_mail() to php default function mail() and I can guarantee that you will fix the mail issue.

 

 

Thanks Alex! Is there a specific file I need to do this in or throughout osCommerce?

Link to comment
Share on other sites

I changed the tep_mail to mail throughout and I receive an error message on both general.php files

 

Fatal error: Cannot redeclare mail() in catalog\includes\functions\general.php on line 1164

 

This is the section it points to:

    // Send message
   $message->build_message();
   $message->send($to_name, $to_email_address, $from_email_name, $from_email_address, $email_subject);
 }
(line 1146)
////
// Check if product has attributes
 function tep_has_product_attributes($products_id) {
   $attributes_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id = '" . (int)$products_id . "'");
   $attributes = tep_db_fetch_array($attributes_query);

   if ($attributes['count'] > 0) {
     return true;
   } else {
     return false;
   }
 }

 

any ideas what the problem would be?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...