List management
Organise contacts and offer a subscriber preference center with mailing lists.
Lists are the preferred way of managing your contacts in Cocoonmail.
In addition to providing fine-grained control over your audience, using Lists will automatically generate a branded Preference Center for contacts in your audience, allowing them to easily manage their subscription preferences.
Lists can be public or private and contacts can belong to many, one, or no lists.
List visibility
Each list you create can be Public or Private.
By default lists are private, meaning they are only shown to their subscribed contacts (non-subscribers won’t be able to see or subscribe to private lists in the Preference Center).
If you want to allow general opt-in to a list, you can set the list visibility to Public
. Public lists will be shown to all contacts in the Preference Center.
You can also sign up new subscribers to public lists with Forms.
Preference Center
The Preference Center allows your contacts to manage their own subscription preferences.


Contacts will see:
- the names and descriptions of all public lists
- the names and descriptions of all private lists they are subscribed to
- the option to unsubscribe from each list they are subscribed to
Create a list
Go to Audience -> Lists.
Create
Click on the Create list button.


A new mailing list will appear. Enter a name for your list and optionally, a description.
Set visibility


Choose between Private
or Public
see above.
Save
Click Create to finalize the creation of the list.
Edit a list
To edit an existing list, go to Audience -> Lists.
Edit the name, description and color.
Click Save changes to apply the changes.
Utilizing lists
Here are a few ways you can use lists to send emails and organise contacts.
Trigger a workflow when a contact is added to a list
This example is a typical use case of sending an email to new contacts when they are added to a specific list.
Choose a workflow
Create a workflow or edit an existing one.
Set the trigger
Set the workflow trigger to “Contact added to list”.


Select the list
Select the list you want to trigger the workflow.


Start the workflow
Start the workflow. When a contact is added to the selected list, the workflow will be triggered.
Manually add contacts to lists
How to add existing contacts to your different mailing lists within Cocoonmail.
Go to Contacts
Go to your Audience page.
Select a contact
Click on the contact you want to manage.
Manage subscriptions
In the contact details page, select contacts, Selected action item and click on Add to lists from dropdown.
Add contacts to lists with the API
Utilizing the Cocoonmail API you can programmatically add and remove contacts to and from Lists.
When creating a contact, updating a contact, or sending in an event with the API, you can include a lists
in the payload.
This lists
object is a list IDs.
In this example, the contact would be subscribed to id1
,id2
,id3
.
Mailing list IDs can be found in the app (click the ID to add it to your clipboard) or by using the API.


Add contacts to lists with forms
If you use a form on your website you can subscribe contacts to specific lists.
When exporting HTML from the Forms page in Cocoonmail, choose a list from the Settings tab.


If you already have a form in place or are using a custom form you can add a mailingLists
parameter to the form body with the value a comma-separated list of mailing list IDs.
HTML example:
JavaScript example: