Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Newsletter Unsubscribe from email not working


Jayman11

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?

Link to comment
Share on other sites

  • 5 months later...

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...