24 April 2017

How to Unsubscribe from Mailing Lists and Junk Newsletters in Gmail


Unroll.me is a free online service that lets you easily unsubscribe from email newsletters and other bulk messages in Gmail. You, however, will have to grant complete access to your Gmail mailbox and to your Google Contacts for Unroll.me to automatically remove your email address from various mailing lists.

This morning, it was revealed that Unroll.me is silently scraping your Gmail mailbox and selling the data to Uber. Maybe it is hidden somewhere in the terms of service that the app can share your data with other companies but who actually reads the fine print. If this worries you,  here’s a simple guide on how to block the app from accessing your Gmail emails in future.

Christian Heilmann’s tweetFeature request for Gmail: automatically find and follow the unsubscribe link in all highlighted emails – prompted me to build an automated system for unsubscribing your Gmail address from the bulk senders. Here’s how it looks like:

Unsubscribe from Gmail Bulk Messages

How to Unsubscribe from Email Newsletters in Gmail

What I have now is a simple Google Script that parses the content of bulk emails and finds the unsubscribe link. If an unsubscribe link is found, the script opens the link and your email is automatically unsubscribed. In some cases, the bulk sender would require you to send a message to a special email address to unsubscribe and our Google script can do that as well.

The big advantage is that don’t have to grant access to your Gmail account to any third-party service and you can add subscription emails to the unsubscribe queue from any email client including desktop and mobile apps. Let’s get started:

  1. Click here to copy the Gmail Unsubscriber sheet to your Google Drive.
  2. Go to the Gmail menu in the sheet (see screenshot above) and choose Authorize. All the script access to your Gmail account. It is an open source Google Script that runs in your own Drive and not a single byte of data is shared with anyone.
  3. From the same menu, choose Start and pick a name for your Gmail label (the default is Unsubscribe). Save your changes

The Gmail Unsubscriber program is now initialized and running in the background. You can now apply the Unsubscribe label to any email message in Gmail and you’ll be automatically unsubscribed in 10-15 minutes. Everything is logged in the Google Sheet so you know what’s happening behind the scenes. Give it a try!

Also, the solution works everywhere – you can apply the label to unwanted subscription newsletters on the Gmail website, mobile apps for Gmail on iPhone & Android or even third-party email clients like Microsoft Outlook (move the email to the Unsubscribe folder) or Apple Mail.

How Gmail Unsubscribes from Mailing Lists

All legitimate bulk email senders include a List-Unsubscribe field in the message header that contains an URL or email address for unsubscribing from a mailing list. Here’s a screenshot:

List-Unsubscribe Header in Bulk Emails

You can view these details by opening any bulk message inside Gmail and choosing “Show Original” from the menu. In other cases, the unsubscribe link may be included in the message body with the anchor text like “click here to unsubscribe” – the script is smart enough to recognize all such links, it opens them for you and removes your email address from the mailing list.


No comments:

Post a Comment