Forums / General Questions / subscribe and unsubscribe from email via zen_mail code

subscribe and unsubscribe from email via zen_mail code

Views: 648

Results 1 to 2 of 2
2 Jun 2015, 1:28 AM
#1
rebecca_l avatar

rebecca_l

New Zenner

Join Date:
Jan 2009
Posts:
18
Plugin Contributions:
0

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 Jun 2015, 2:08 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.