bklurch Posted October 4, 2007 Share Posted October 4, 2007 I found that the standard OsCommerce system wasn't sending copies of orders to the email addresses listed in the 'Send Extra Order Emails To' field. This seems to be an issue when using a Windows Server. This is how I got around it. In checkout_process.php, line ~ 260 I replaced the existing code with the following: if (strlen(SEND_EXTRA_ORDER_EMAILS_TO) > 1) { tep_mail(STORE_OWNER, SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } Yes, in theory the alteration in the if statement shouldn't make any difference, but it seems to. The email addresses listed in the field must also be in the following format: [email protected], [email protected], [email protected] and not the standard specified: User 1 <[email protected]>, User 2 <[email protected]>, User 3 <[email protected]> I hope this can be of help to someone, I know I was hunting around for the solution for ages and did come across some other people with the same issue and no responses. All the best bklurch Link to comment Share on other sites More sharing options...
bpmcclure Posted January 14, 2008 Share Posted January 14, 2008 I found that the standard OsCommerce system wasn't sending copies of orders to the email addresses listed in the 'Send Extra Order Emails To' field. This seems to be an issue when using a Windows Server. This is how I got around it. In checkout_process.php, line ~ 260 I replaced the existing code with the following: if (strlen(SEND_EXTRA_ORDER_EMAILS_TO) > 1) { tep_mail(STORE_OWNER, SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } Yes, in theory the alteration in the if statement shouldn't make any difference, but it seems to. The email addresses listed in the field must also be in the following format: [email protected], [email protected], [email protected] and not the standard specified: User 1 <[email protected]>, User 2 <[email protected]>, User 3 <[email protected]> I hope this can be of help to someone, I know I was hunting around for the solution for ages and did come across some other people with the same issue and no responses. All the best bklurch Of note, I have been trying to get emails to go to the right places today, and found that if only ONE email address in [email protected] format is included in the Extra Email field, it works great, but if I put in another after a comma, the email goes nowhere except to the customer. I can live with this now, and pass it along as a possible easy fix for others that may bump up against this. Bruce Link to comment Share on other sites More sharing options...
satish Posted January 14, 2008 Share Posted January 14, 2008 make a copy paste of the send mail line code and hard code the email Id where You want to send a copy. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.