Use this to allow a user to unsubscribe from a newsletter via a reply email
// This is the updated code to be used for the Salesforce plugin: https://appexchange.salesforce.com/appxListingDetail?listingId=a0N300000016YDZEA2 // Install the plubin. // Changout all of the Apex installed in the unsubscribe class with updated code below. // Add the custom field hasOptedOutOfEmail__c (without the __c, salesforce will add that) to your Lead and Contact object. // Create an email in Setup > Custom Code > Email Services (and make it active) // Then just append ?subject=Unsubscribe to the end of the email and insert that link into any mailings. // This allows a user to unsubscribe via email.