Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2009
    Posts
    18
    Plugin Contributions
    0

    Default subscribe and unsubscribe from email via zen_mail code

    We are running a third party email program. To be able to automatically update the email list for that program I need to send emails from the user that is subscribing or unsubscribing to a specific email address with a subject of subscribe or unsubscribe. I have modified various files in my custom folders and the subscribe option is now working both from a side bar entry form and from the create account page. The problem is that I haven't been able to figure out where to place the zen_mail statement for the unsubscribe. I've been going at this trial and error for some time now and can't seem to find the correct files. Is there a schematic that might show me a flow of a newsletter subscribe/unsubscribe? There is only one check box available on the "my account" page and it seems to work like a toggle off/on but I don't know how to tell it when to send a subscribe or send an unsubscribe email.
    Whenever the newsletter field is updated by zen cart, I need the appropriate email to be sent via zen_mail. Can anyone tell me which files I should be customizing?

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

    Default Re: subscribe and unsubscribe from email via zen_mail code

    If you're talking about activity done on the index.php?main_page=account_newsletters screen, then the file is /includes/modules/pages/account_newsletter/header_php.php
    .
    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. Remove unsubscribe button from unsubscribe page
    By IA7X ShadowsI in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Oct 2010, 08:30 PM
  2. Replies: 0
    Last Post: 18 Aug 2009, 12:59 PM
  3. using Newsletter Subscribe contribution, having email problem from admin section
    By lucianman in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 16 Mar 2008, 11:06 PM
  4. Replies: 3
    Last Post: 30 Mar 2007, 12:56 PM
  5. Sending a MySQL SET command via PHP from ZC code
    By nkostaki in forum General Questions
    Replies: 7
    Last Post: 26 Jul 2006, 08:05 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