Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2007
    Location
    USA
    Posts
    889
    Plugin Contributions
    5

    Default Email Defines - Unsubscribe Link

    Looking to better organize the email traffic.

    How is an unsubscribe email added to admin?

    Need to change the unsubscribe links and references in the newsletters and emails to send unsubscribe email to unsubscribe@yoursite

    /includes/languages/email_extras.php

    Line 28: define('EMAIL_DISCLAIMER'

    If you feel that you have received this email in error, please send an email to %s '

    Line 31:

    define('TEXT_UNSUBSCRIBE', "\n\nTo unsubscribe from future newsletter and promotional mailings, simply click on the following link: \n");

    Line 34:

    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");

    Thanks in advance!
    Cheers!
    v2.2.1

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Email Defines - Unsubscribe Link

    So, now that you've located the name of the constant TEXT_UNSUBSCRIBE, go back to the developer toolkit and look it up. You'll find all the places in the code where it's used, and then you can customize the PHP to suit your unique needs.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    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.

  3. #3
    Join Date
    Nov 2007
    Location
    USA
    Posts
    889
    Plugin Contributions
    5

    Default Re: Email Defines - Unsubscribe Link

    Thanks well, thats what I did and that all there is.

    What really needs to be done Doc is to add another function or define.

    Once the unsubscribe email is added to Admin Control panel > E-Mail Options then we can make the fixes on the affected pages to capture the unsubscribe traffic.

    The define('TEXT_UNSUBSCRIBE is fine after all because it will unsubscribe the client's actual email address.

    I'm targeting the // email disclaimer area (email extras.php)

    STORE_OWNER_EMAIL_ADDRESS link to change it to UNSUBSCRIBE_EMAIL_ADDRESS
    Cheers!
    v2.2.1

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Email Defines - Unsubscribe Link

    Quote Originally Posted by webskipper View Post
    Thanks well, thats what I did and that all there is.
    Um, no. If that's all there was, then the text would never show up in the emails.
    Quote Originally Posted by webskipper View Post
    I'm targeting the // email disclaimer area (email extras.php)

    STORE_OWNER_EMAIL_ADDRESS link to change it to UNSUBSCRIBE_EMAIL_ADDRESS
    As you wish. You're free to do as you wish to suit your needs.
    In fact, since that's just a language string, if you edit it directly then you've accomplished the end result with just a few keystrokes and no programming changes. Indeed that's the recommended approach. But, I figured you'd know that thus the other reply earlier.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    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.

  5. #5
    Join Date
    Nov 2007
    Location
    USA
    Posts
    889
    Plugin Contributions
    5

    Default Re: Email Defines - Unsubscribe Link

    Sorry, never have coded these sql patches.

    No idea how to do an insert into patch. Please advise.

    (264, 'Email Address (Displayed to Contact you)', 'STORE_OWNER_EMAIL_ADDRESS', 'Orders@YOURSITE', 'Email address of Store Owner. Used as "display only" when informing customers of how to contact you.', 12, 10, '2010-05-17 23:31:34', '2008-03-21 22:47:36', NULL, NULL),

    to

    ((new table number), 'Unsubscribe Email Address (Displayed to Unsubscribe)', 'UNSUBSCRIBE_EMAIL_ADDRESS', 'Unsubscribe@YOURSITE', 'Email address to RECEIVE Unsubscribe Emails. Used as "display only" when informing customers of how to unsubscribe.', 12, 10, '2010-05-17 23:31:34', '2008-03-21 22:47:36', NULL, NULL),
    Cheers!
    v2.2.1

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Email Defines - Unsubscribe Link

    There's no need to do any SQL stuff. Just edit the language file and it's all done.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    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.

  7. #7
    Join Date
    Nov 2007
    Location
    USA
    Posts
    889
    Plugin Contributions
    5

    Default Re: Email Defines - Unsubscribe Link

    Just seems silly to have the store owner email as unsubscribe.

    Certainly there is a way to properly add an unsubscribe email address to the Admin Email Options page.
    Cheers!
    v2.2.1

  8. #8
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Email Defines - Unsubscribe Link

    Quote Originally Posted by webskipper View Post
    Just seems silly to have the store owner email as unsubscribe.
    Why? If the customer is receiving newsletters from that address, wouldn't it be logical that they reply to that address if they wish to unsubscribe?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    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.

 

 

Similar Threads

  1. v154 eMail Templates HTML vs Text and email defines
    By kwright in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Feb 2015, 03:09 AM
  2. Unsubscribe link in email?
    By horsetags in forum General Questions
    Replies: 2
    Last Post: 10 Aug 2010, 02:25 AM

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