# mailinglist\_confirm

Source: https://zotonic.com/docs/1734/mailinglist_confirm

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

Language: en



Confirm a mailinglist subscription. Required argument is the `confirm_key`.

Other arguments:

- `on_success` - actions which get executed when the subscription is confirmed.
- `on_error` - actions which get executed when the subscription fails (e.g. wrong confirm key).

Both action arguments can be repeated. The signed postback passes `confirm_key` to `m_mailinglist:recipient_confirm/2` and runs exactly one of the two action lists.

```django
{% wire action={mailinglist_confirm confirm_key=q.key on_success={show target="confirmed"} on_error={show target="invalid"}} %}
```

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1734?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/1734?language=en>)
