I have a custom php script that automatically create and send the newsletter . I need include on the script the link for email unsubscribe . Can you help me please with basic php code in order to do that ?
thx
I have a custom php script that automatically create and send the newsletter . I need include on the script the link for email unsubscribe . Can you help me please with basic php code in order to do that ?
thx
No, not really, since you've not given us the "custom script" code, nor told us anything about it.
But here's what you need to do it yourself:
Does this custom script work inside Zen Cart and use the Zen Cart email templates? If so, simply make sure your email template has $UNSUBSCRIBE_LINK in it, and it will be converted into the correct link.
If your "custom script" doesn't know anything about Zen Cart, then you'll need to manually add your own link into it yourself:
Code:index.php?main_page=unsubscribe&addr=PUT_THEIR_EMAIL_ADDRESS_HERE
.
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.
My script connect to zencart , create a dynamic email containing new products added , loop trough emails addresses and send them . Your reply solved my issue ! Thx Dr. , whish you the best !