.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donations always welcome: www.zen-cart.com/donate
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Hey lat9:
I tried that. No go. In fact, I got frustrated and deleted all 6 lines. Same result. Don't understand it!
I think you might be getting "bit" by the zen_mail function itself. Look in /includes/functions/functions_email.php; my copy has the following version information:
Starting at line 114, there's this code fragment that might be the source of your problem:Code:/** * functions_email.php * Processes all outbound email from Zen Cart * Hooks into phpMailer class for actual email encoding and sending * * @package functions * @copyright Copyright 2003-2011 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: functions_email.php 19325 2011-08-02 22:09:43Z drbyte $ * 2007-09-30 added encryption support for Gmail Chuck Redman */
Code:if ($module != 'xml_record') { if (!strstr($email_text, sprintf(EMAIL_DISCLAIMER, STORE_OWNER_EMAIL_ADDRESS)) && $to_email_address != STORE_OWNER_EMAIL_ADDRESS && !defined('EMAIL_DISCLAIMER_NEW_CUSTOMER')) $email_text .= "\n" . sprintf(EMAIL_DISCLAIMER, STORE_OWNER_EMAIL_ADDRESS); if (defined('EMAIL_SPAM_DISCLAIMER') && EMAIL_SPAM_DISCLAIMER != '' && !strstr($email_text, EMAIL_SPAM_DISCLAIMER) && $to_email_address != STORE_OWNER_EMAIL_ADDRESS) $email_text .= "\n\n" . EMAIL_SPAM_DISCLAIMER; }
Hey lat9.
Yea, I figured it was being done somewhere outside the order routine. You're probably right that it's in the functions_email routine. Looking at the code, however, it looks like the disclaimers shouldn't be included if the email is going to the store owner. I'll look at the code further this afternoon and see if it's being added somewhere else in the routine.
Thanks for sticking with this. You are truly Totally Zenned.
Regards.
What exactly did you change in the code?
It sounds like you want to send a completely different email to a completely different address. What's the business purpose for this other email you're sending? Why are you wanting to make these changes?
It's often helpful to know the full back-story in order to give you the specific answer you need.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donations always welcome: www.zen-cart.com/donate
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Bookmarks