Help & Support
Elevate Your Agents with AgentExchange Solutions
Easily enhance Agentforce with pre-built AI solutions from AgentExchange. Browse, install, and deploy agents, actions, and apps directly into your environment. Tell Me More
Have Questions?
Private ListingThis listing is private and can't be found by searching or browsing AppExchange.
Unsubscribe opt-out
Provide prospects an easy way to unsubscribe
- Business Need
- Mass Emails
Most companies send out marketing emails to their customers and prospects, and need a way to let them unsubscribe from your email messages. This Apex code will to process unsubscribe requests from the email recipients, and update the email opt-out flag
Rating
Reputation
MVP
Recognized by Salesforce for their leadership, expertise, and generosity
Top Reviewer
Contribute reviews that encourage conversation and help others make informed decisions
Ranger
Lifelong learners who have earned the Ranger rank or higher on Trailhead
Showing 10 of 67 Reviews
Can i use for Custom object
When i create a record in custom object and send the customer need to add unsubscribe option.
Worked for us
Its simple and easy to configure. We were able to achieve the unsubscribe via email.
Works great
easy to install, thank you
How to edit an apex class in production?
The instructions say to edit the apex class and save it. Editing an apex class in production isn't an option as far as I know. When I try to deploy this class from a sandbox the tests fail.
Worked For Us
The directions were spot on for us. We did not use sandbox to test this out. We did it in production but noticed that the spelling of Unsubscribe is key. For us, using A capital U worked. When we labeled things with lowercase u, it did not work, Hope this helps others
Installation guide links broken
The links to the install guide are broken.
As Advertised
The app works exactly as advertised and is quick and easy to implement. I've condensed the tips from other commenters that helped me get everything up and running. Instructions 1. Install the package from the AppExchage 2. Open Setup 3. Enter "email services" into the quick search bar 4. Click on Email Services under Custom Code 5. Click the New Email Service button 6. Name the Email Service 7. Using the Apex Class look up button (spyglass) search for and select "unsubscribe" 8. Confirm the Active checkbox is selected (Active = true) 9. Set Over Email Rate Limit Action to "Requeue message" 10. Click the Save and New Email Address button 11. Set Email Address Name to "Unsubscribe" 12. Set Email Address to "unsubscribe" 13. Confirm the Active checkbox is selected (Active = true) 14. Set the Context User (the one who will update the Do Not Email field) 15. Click Save 16. Open Setup 17. Enter "apex class" into the quick search bar 18. Click on Apex Class under Custom Code 19. Edit the "unsubscribe" apex class 20. Click Save without making any adjustments to the apex class (if you find things aren't working later, try repeating this step) Now you can take the email address you created inside of your email service and put it in email templates or signatures as a mailto link. The mailto link can be set up to populate a default subject and body. The subject will need to include the word "unsubscribe". Use the formatting of the example link and feel free to adjust the wording. ?subject= indicates the start of the subject line while &body= indicates the start of the body of the email. You can add spaces by entering %20 in between words. Example mailto link. mailto:xxxxxxxxxx?subject=Unsubscribe%20From%20Emails&body=I%20confirm%20I%20want%20to%20opt%20out%20from%20any%20emails. Replace xxxxxxxxxx with the email address from steps 11 to 15
Not working
Is is possible anyone can help? When you click the unsubscribe link it opens an email with no subject. If i type unsubscribe and email back it isn't checking the opt-out field. PLEASE HELP!
Simple basic solution
It was easy to implement. I agree it's a key feature missing in the core product though. Just didn't seem fair to reduce the ratings of this free solution which stands on it's own, separate from Salesforce's product decisions.
Simple and serves the purpose
Helped us to have a basic Unsubscribe feature on our outgoing emailers.
Hi David, This approach works fine in sandbox environment. In production, how can we edit and save the Apex class to refresh? In Prod editing an apex class is not possible?