Update: Synchronize unsubscribes with your own database
Posted by David Greiner on June 22, 2005
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.
4 comments so far
Search all posts
Dig into a category
- Articles/Tips (108)
- Email Newsletter Design (123)
- Happy Customers/Press (92)
- In the Forums (10)
- Interviews & Case Studies (9)
- New Features & Updates (113)
- Observations & Answers (100)
Stay in the loop
Prefer updates via email? Sign up below and we'll send you all the good bits each month.
Popular articles
Email design guidelines
Straight to the point advice for creating effective emails.
Why we need standards support in email
Read why standards in HTML email are so important, and what we're doing about it.
CSS support in email for 2008
The CSS support of even more popular email environments tested and recorded.
Image blocking in email
A roundup of how each of the popular email clients suppress images in HTML email.
Can I use flash in email?
We test flash support in all the popular email clients. The verdict - don't do it.
Email design gallery
Our email design gallery showcases more than 150 amazing email designs sent by our talented customers.

Fergus Burns
wrote on June 30, 2005 4:40 AM
Do you intend to make your API available to external developers/partners, so they can extend your service offering
Dave Greiner
wrote on June 30, 2005 8:12 AM
We sure do. We're doing the final round of testing with a few super keen customers right now. The feedback's been fantastic so far, so if all goes to plan we should be releasing it in the next day or so.
We'll announce it here the moment it becomes available.
Gavin
wrote on August 3, 2005 11:58 AM
Sorry, bit of a newbie here - I have a project whereby I do need to synchronise with another DB. Is the intention of the above (non-API) method to then have some server-side code on the UnSubscribe confirmation page to then use the URL variable to perform the necessary action on the other database? Have I got that right? Thanks.
Dave Greiner
wrote on August 3, 2005 1:50 PM
Hey Gavin, yep that's exactly what it's intended for. Once it's in the querystring you can do whatever you want with it server side.
Got anything to add?