A few customers have contacted us asking how they can access the email address of someone the minute they unsubscribe from a list. This is usually for customers who want to synchronize a local database with their Campaign Monitor subscriber list.
We’re launching a big upgrade to our API in the coming days, but this is a great solution for those less familiar with web services.
This is now as easy as adding a single [email] tag to your unsubscribe confirmation URL (the address your subscribers get redirected to when unsubscribing from a form or an email).
For example, you could change your unsubscribe URL to:
www.mysite.com/goodbye.php?emailaddress=[email]
The email address of the individual who unsubscribes will then passed into the query string of that page. For example, the subscriber johnsmith@aol.com will now be redirected to:
http://www.mysite.com/goodbye.php?emailaddress=johnsmith@aol.com
This technique will work for anyone who unsubscribes via a campaign or an unsubscribe form.