Home Resources Blog

Unsubscribe URL Screenshot

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.

  • Fergus Burns

    Do you intend to make your API available to external developers/partners, so they can extend your service offering

  • Dave Greiner

    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

    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

    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.

This blog provides general information and discussion about email marketing and related subjects. The content provided in this blog ("Content”), should not be construed as and is not intended to constitute financial, legal or tax advice. You should seek the advice of professionals prior to acting upon any information contained in the Content. All Content is provided strictly “as is” and we make no warranty or representation of any kind regarding the Content.
Straight to your inbox

Get the best email and digital marketing content delivered.

Join 250,000 in-the-know marketers and get the latest marketing tips, tactics, and news right in your inbox.

Subscribe

See why 200,000 companies worldwide love Campaign Monitor.

From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.

Get started for free