Exclude subscribers based on their email type preference in Marketing Cloud Email
|Knowledge Article Number||000214152|
You can exclude subscribers from a triggered send based on their profile attributes, status, or preferences. Using an exclusion script, you can exclude subscribers from receiving an email based on their email type preference. For example, if a subscriber prefers HTML emails, write an exclusion script to exclude that subscriber from receiving any text emails.
The exclusion script is placed in the box labeled "Exclusion Script" in the triggered send definition.
Exclude Subscribers with a TEXT email type preference:
Substring(List_,IndexOf(List_,"_"),Length(List_)) == "_TEXT"
Exclude Subscribers with a HTML email type preference:
Substring(List_,IndexOf(List_,"_"),Length(List_)) == "_HTML"
Related TopicsEmail - Content - Email Messages - How to Create a User-Initiated Email Interaction