# controller\_mailinglist\_export

Source: https://zotonic.com/docs/1891/controller_mailinglist_export

URI: https://zotonic.com/id/1891

Language: en



Controller which downloads the given mailinglist id as a CSV file.

The required `id` argument can be a mailing-list resource id or name. The caller must be allowed to edit that mailing list. `GET` and `HEAD` requests are supported.

The UTF-8 CSV contains active recipients only, with the columns `Email`, `First`, `Surname`, `Prefix`, `Language`, and `Id`. Both explicit mailing-list recipients and connected resource recipients are included. The download name is `mailinglist-<list-title>.csv`.

```django
<a href="{% url mailinglist_export id=id %}">Download recipients</a>
```

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1891?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1891?language=en>)
