Zen Cart Logo
Forums / General Questions / Unsuscribe email link in custom script

Unsuscribe email link in custom script

Views: 644

Results 1 to 3 of 3
28 Jun 2013, 9:42 AM
#1
solo_400 avatar

solo_400

Zen Follower

Join Date:
Aug 2009
Posts:
369
Plugin Contributions:
0

Unsuscribe email link in custom script

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

28 Jun 2013, 7:24 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Unsuscribe email link in custom script

solo_400:

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:

solo_400:

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:

index.php?main_page=unsubscribe&addr=PUT_THEIR_EMAIL_ADDRESS_HERE
29 Jun 2013, 12:26 PM
#3
solo_400 avatar

solo_400

Zen Follower

Join Date:
Aug 2009
Posts:
369
Plugin Contributions:
0

Re: Unsuscribe email link in custom script

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 !