Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Receive a copy of all outgoing email


mkzhang

Recommended Posts

Posted

Hi all,

 

I was wondering how can I get a copy of all outgoing emails? Basically the order confirmation email (done via send extra emails to:) and the order status notification emails.

 

The reason for this is that we want to be able to catalog all notification and emails for paper work purposes. I have looked around but can't seem to find any solutions.

 

Any help will be appreciated :)

 

Thanks

Posted

Hi all,

 

I was wondering how can I get a copy of all outgoing emails? Basically the order confirmation email (done via send extra emails to:) and the order status notification emails.

 

The reason for this is that we want to be able to catalog all notification and emails for paper work purposes. I have looked around but can't seem to find any solutions.

 

Any help will be appreciated :)

 

Thanks

You could get a copy of the order status notification kind of like what was done here

 

Except the code is in /admin/orders.php

 

Replace this code:

 

          tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

With:

 

          $headers = 'From: ' . STORE_OWNER_EMAIL_ADDRESS . "\r\n" . 'Bcc: ' . STORE_OWNER_EMAIL_ADDRESS . "\r\n";
         mail($check_status['customers_email_address'] , EMAIL_TEXT_SUBJECT , $email , $headers, '');

BACKUP THE FILE FIRST!

 

I haven't tried this code like I did in the other thread...

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Thank you so much :)

 

I went ahead and copied the if clause where "if send additional email is true etc" and added it to the admin/order.php file. It now retains the ability to be turned on and off with the send additional emails to function as well.

 

Thanks for the tip!

Archived

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

×
×
  • Create New...