Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2008
    Location
    Australia
    Posts
    74
    Plugin Contributions
    0

    red flag Desperate Help needed with Email Scripting

    Today I attempted to add my web address to the email footer and edit out the US-Can part out of the disclaimer.

    The two files I touched was

    admin/includes/languages/english/email_extras.php and
    includes/languages/english/email_extras.php.

    now the website wont load at all....

    admin file looks like this...

    // email disclaimer
    define('EMAIL_DISCLAIMER', 'This email address was given to us by you or by one of our customers. If you feel that you have received this email in error, please send an email to %s');
    define('EMAIL_SPAM_DISCLAIMER','This e-mail is sent in accordance with the SPAM Law in effect 01/01/2004. Removal requests can be sent to this address and will be honoured and respected.');
    define('EMAIL_FOOTER_COPYRIGHT','Copyright (c) ' . date('Y') . ' Powered by <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>');
    define('SEND_EXTRA_GV_ADMIN_EMAILS_TO_SUBJECT','[GV ADMIN SENT]');
    define('SEND_EXTRA_DISCOUNT_COUPON_ADMIN_EMAILS_TO_SUBJECT','[DISCOUNT COUPONS]');
    define('SEND_EXTRA_ORDERS_STATUS_ADMIN_EMAILS_TO_SUBJECT','[ORDERS STATUS]');

    and the includes/language/english/email_extras.php looks like this...

    // email disclaimer
    define('EMAIL_DISCLAIMER', 'This email address was given to us by you or by one of our customers. If you feel that you have received this email in error, please send an email to %s ');
    define('EMAIL_SPAM_DISCLAIMER','This email is sent in accordance with SPAM Law in effect 01/01/2004. Removal requests can be sent to this address and will be honoured and respected.');
    define('EMAIL_FOOTER_COPYRIGHT','Copyright (c) ' . date('Y') '. Powered by <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>');
    define('TEXT_UNSUBSCRIBE', "\n\nTo unsubscribe from future newsletter and promotional mailings, simply click on the following link: \n");

    CAN SOMEONE TELL ME WHAT I HAVE DONE WRONG PLEEEEASE??

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Desperate Help needed with Email Scripting

    Wi,
    First of all restore the two files you played with today from the Zen Cart Version you are using.
    You should have a original set of file from the zen cart version you are runnning...
    Use your Ftp program to upload the files
    admin/includes/languages/english/email_extras.php and
    includes/languages/english/email_extras.php.

    1. this will get your site back up and running

  3. #3
    Join Date
    Jul 2008
    Location
    Australia
    Posts
    74
    Plugin Contributions
    0

    Default Re: Desperate Help needed with Email Scripting

    hi haredo - thanks for the quick reply - but i didnt do a backup first!! I KNOW I KNOW you should ALWAYS do a backup before playing with files....but i didnt

    is there somewhere where i can upload a clean version of ONLY THOSE FILES??

    your help is appreciated!

  4. #4
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Desperate Help needed with Email Scripting

    Yes, click the Home button on the top of this page for a full file set of Zen cart..

  5. #5
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Desperate Help needed with Email Scripting

    admin/includes/languages/english/email_extras.php
    PHP Code:
    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce                                       |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers                           |
    // |                                                                      |
    // | http://www.zen-cart.com/index.php                                    |
    // |                                                                      |
    // | Portions Copyright (c) 2003 osCommerce                               |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license,       |
    // | that is bundled with this package in the file LICENSE, and is        |
    // | available through the world-wide-web at the following url:           |
    // | http://www.zen-cart.com/license/2_0.txt.                             |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to       |
    // | [email protected] so we can mail you a copy immediately.          |
    // +----------------------------------------------------------------------+
    // $Id: email_extras.php 5454 2006-12-29 20:10:17Z drbyte $
    //

    // office use only
      
    define('OFFICE_FROM','From:');
      
    define('OFFICE_EMAIL','E-mail:');

      
    define('OFFICE_SENT_TO','Sent To:');
      
    define('OFFICE_EMAIL_TO','E-mail:');
      
    define('OFFICE_USE','Office Use Only:');
      
    define('OFFICE_LOGIN_NAME','Login Name:');
      
    define('OFFICE_LOGIN_EMAIL','Login e-mail:');
      
    define('OFFICE_LOGIN_PHONE','<strong>Telephone:</strong>');
      
    define('OFFICE_IP_ADDRESS','IP Address:');
      
    define('OFFICE_HOST_ADDRESS','Host Address:');
      
    define('OFFICE_DATE_TIME','Date and Time:');

    // email disclaimer
      
    define('EMAIL_DISCLAIMER''This email address was given to us by you or by one of our customers. If you feel that you have received this email in error, please send an email to %s');
      
    define('EMAIL_SPAM_DISCLAIMER','This e-mail is sent in accordance with the US CAN-SPAM Law in effect 01/01/2004. Removal requests can be sent to this address and will be honored and respected.');
      
    define('EMAIL_FOOTER_COPYRIGHT','Copyright (c) ' date('Y') . ' <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>. Powered by <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>');
      
    define('SEND_EXTRA_GV_ADMIN_EMAILS_TO_SUBJECT','[GV ADMIN SENT]');
      
    define('SEND_EXTRA_DISCOUNT_COUPON_ADMIN_EMAILS_TO_SUBJECT','[DISCOUNT COUPONS]');
      
    define('SEND_EXTRA_ORDERS_STATUS_ADMIN_EMAILS_TO_SUBJECT','[ORDERS STATUS]');
      
    define('TEXT_UNSUBSCRIBE'"\n\nTo unsubscribe from future newsletter and promotional mailings, simply click on the following link: \n");

    // for whos_online when gethost is off
      
    define('OFFICE_IP_TO_HOST_ADDRESS''Disabled');
    ?>

  6. #6
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Desperate Help needed with Email Scripting

    includes/ languages/ english/ email_extras.php
    PHP Code:
    <?php
    /**
     * @package languageDefines
     * @copyright Copyright 2003-2007 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: email_extras.php 7161 2007-10-02 10:58:34Z drbyte $
     */

    // office use only
      
    define('OFFICE_FROM','<strong>From:</strong>');
      
    define('OFFICE_EMAIL','<strong>Email:</strong>');

      
    define('OFFICE_SENT_TO','<strong>Sent To:</strong>');
      
    define('OFFICE_EMAIL_TO','<strong>To Email:</strong>');

      
    define('OFFICE_USE','<strong>Office Use Only:</strong>');
      
    define('OFFICE_LOGIN_NAME','<strong>Login Name:</strong>');
      
    define('OFFICE_LOGIN_EMAIL','<strong>Login Email:</strong>');
      
    define('OFFICE_LOGIN_PHONE','<strong>Telephone:</strong>');
      
    define('OFFICE_LOGIN_FAX','<strong>Fax:</strong>');
      
    define('OFFICE_IP_ADDRESS','<strong>IP Address:</strong>');
      
    define('OFFICE_HOST_ADDRESS','<strong>Host Address:</strong>');
      
    define('OFFICE_DATE_TIME','<strong>Date and Time:</strong>');
      if (!
    defined('OFFICE_IP_TO_HOST_ADDRESS')) define('OFFICE_IP_TO_HOST_ADDRESS''OFF');

    // email disclaimer
      
    define('EMAIL_DISCLAIMER''This email address was given to us by you or by one of our customers. If you feel that you have received this email in error, please send an email to %s ');
      
    define('EMAIL_SPAM_DISCLAIMER','This email is sent in accordance with the US CAN-SPAM Law in effect 01/01/2004. Removal requests can be sent to this address and will be honored and respected.');
      
    define('EMAIL_FOOTER_COPYRIGHT','Copyright (c) ' date('Y') . ' <a href="' zen_href_link(FILENAME_DEFAULT) . '" target="_blank">' STORE_NAME '</a>. Powered by <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>');
      
    define('TEXT_UNSUBSCRIBE'"\n\nTo unsubscribe from future newsletter and promotional mailings, simply click on the following link: \n");

    // email advisory for all emails customer generate - tell-a-friend and GV send
      
    define('EMAIL_ADVISORY''-----' "\n" '<strong>IMPORTANT:</strong> For your protection and to prevent malicious use, all emails sent via this web site are logged and the contents recorded and available to the store owner. If you feel that you have received this email in error, please send an email to ' STORE_OWNER_EMAIL_ADDRESS "\n\n");

    // email advisory included warning for all emails customer generate - tell-a-friend and GV send
      
    define('EMAIL_ADVISORY_INCLUDED_WARNING''<strong>This message is included with all emails sent from this site:</strong>');


    // Admin additional email subjects
      
    define('SEND_EXTRA_CREATE_ACCOUNT_EMAILS_TO_SUBJECT','[CREATE ACCOUNT]');
      
    define('SEND_EXTRA_TELL_A_FRIEND_EMAILS_TO_SUBJECT','[TELL A FRIEND]');
      
    define('SEND_EXTRA_GV_CUSTOMER_EMAILS_TO_SUBJECT','[GV CUSTOMER SENT]');
      
    define('SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT','[NEW ORDER]');
      
    define('SEND_EXTRA_CC_EMAILS_TO_SUBJECT','[EXTRA CC ORDER info] #');

    // Low Stock Emails
      
    define('EMAIL_TEXT_SUBJECT_LOWSTOCK','Warning: Low Stock');
      
    define('SEND_EXTRA_LOW_STOCK_EMAIL_TITLE','Low Stock Report: ');

    // for when gethost is off
      
    define('OFFICE_IP_TO_HOST_ADDRESS''Disabled');
    ?>

  7. #7
    Join Date
    Jul 2008
    Location
    Australia
    Posts
    74
    Plugin Contributions
    0

    Default Re: Desperate Help needed with Email Scripting

    fixed! thanks so much

  8. #8
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: Desperate Help needed with Email Scripting

    To accomplish what you're trying to do you would edit the files in your /email folder. Oh, and back them up first.

 

 

Similar Threads

  1. v155 Help Needed With Email Settings
    By LittleAngell52 in forum Basic Configuration
    Replies: 7
    Last Post: 27 Jul 2016, 09:52 PM
  2. Desperate help needed please...
    By bridge32 in forum General Questions
    Replies: 5
    Last Post: 8 Jul 2011, 07:16 PM
  3. Desperate Help Needed - HTML Validation :( :(
    By Ambitions in forum General Questions
    Replies: 7
    Last Post: 15 Jun 2010, 04:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg