BigCommerce - Hosted Ecommerce Software by Interspire

Interspire Forum

 
Go Back   Interspire Forum > Interspire Email Marketer Community Forum > Customization and Integration

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 11-18-2010, 10:15 PM
John T (Interspire Staff) + John T (Interspire Staff) is offline
Interspire Staff
 
Join Date: Oct 2010
Location: Austin, Texas
Posts: 129
Lightbulb How to confirm an unsubscribe request

Sometimes you may want to confirm or log unsubscribe requests, especially if your contacts are getting unsubscribed without their permission.

To add in a confirmation page:

1.) Rename /emailmarketer/unsubscribe_confirmed.php to unsubscribe_confirm.php

2. ) Create a new PHP file named 'unsubscribe_confirmed.php' with the following contents:

PHP Code:
Are you sure you want to unsubscribe?
<form action="unsubscribe_confirm.php?<?php echo $_SERVER['QUERY_STRING']; ?>" method="post">
<input type='submit' value='Yes' />
</form>
3.) Save that file to the emailmarketer root folder (/emailmarketer/unsubscribe_confirmed.php) so that it takes place of the original unsubscribe_confirmed.php file

To log unsubscribe requests (referer, ip address, user agent, etc):

1.) Upload the attached files to your server, overwriting the existing unsubscribe_confirmed.php file.

2.) You may need to make unsubscribe_log.html writable by the group (775) depending on your server settings.
Attached Files
File Type: php unsubscribe_confirmed.php (9.2 KB, 109 views)
File Type: html unsubscribe_log.html (39 Bytes, 49 views)
__________________
Software Engineer
http://www.interspire.com

Last edited by John T (Interspire Staff); 03-17-2011 at 10:48 PM..
  #2  
Old 11-19-2010, 06:14 AM
Teneo + Teneo is offline
Interspire Customer
 
Join Date: Feb 2009
Location: Brugges
Posts: 630
Default

Great post and very usable !
__________________

PROMO : Signup today for our SMTP Relay services and receive a free license of our MPS Addon !

Bram Van Daele

TENEO SMTP relay services
http://esp.teneo.be

(Contact me directly)
  #3  
Old 03-17-2011, 10:49 PM
John T (Interspire Staff) + John T (Interspire Staff) is offline
Interspire Staff
 
Join Date: Oct 2010
Location: Austin, Texas
Posts: 129
Default

Added unsubscribe logging too
__________________
Software Engineer
http://www.interspire.com
Closed Thread

Tags
unsubscribe confirm

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump