Unsuscribe email link in custom script

Post By:user_939 | Reply

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
user_939Sat, 29 Jun 2013

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 !

user_103Fri, 28 Jun 2013

Quote Originally Posted by View Post
Can you help me please with basic php code in order to do that ?
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:

Quote Originally Posted by View Post
I have a custom php script that automatically create and send the newsletter
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

`Reply Or Comment!
Please LogIn to Reply!