function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kzmpkzmp 

Simple consent management for email in Salesforce

Our contacts have upto three email addresses. Sometimes we get into situation where a wife uses her email address and her husband's email address as a secondary email address. The husband is also a customer and he uses his email address in a separate Contact.
If someone opts out and withdraws consent for an email we would like to stop marketing to that email and also have an indicator next to the email in the Salesforce which indicates that this email does not have consent. 
If someone opts in we would like to keep that information reflected accordingly as well.
We receive information of whether someone opted out or opted in from the email service provider via regular export. 

How would you model the emails and consent given for an email in Salesforce?
Would you create a separate sObject Email which keeps the email address and consent and which links to Contacts? 

I am aware of the sophisitcated consent management objects in Salesforce however that seems too complex for our use case. We only have one type of consent and we only market via email.