Jump to content
Sign in to follow this  
Jayman11

Newsletter Unsubscribe from email not working

Recommended Posts

For some reason I have noticed that customers are having problems removing themselves from the newsletter via the emailed link at the bottom of the newsletter. It seems to be losing the @ symbol when it unsubscribes them so it really doesnt take them off. I have the simple visitor newsletter contrib installed and am wondering if anyone knows what code to look for to fix this?

Share this post


Link to post
Share on other sites

In unsubscribe.php and unsubscribe_done.php line 17-21

 

replace:

  if (isset($HTTP_GET_VARS['email'])) {
$email_to_unsubscribe = ereg_replace('[^0-9A-Za-z@._-]', '', $HTTP_GET_VARS['email']); 
 } else {
$email_to_unsubscribe = '';
 }

 

with:

 

  if (isset($HTTP_GET_VARS['email'])) {
$email_to_unsubscribe = $HTTP_GET_VARS['email']; 
 } else {
$email_to_unsubscribe = '';
 }

Edited by Jonojamesmac

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×