# mailing\_page\_test

Source: https://zotonic.com/docs/1795/mailing_page_test

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

Language: en



Post a message to the test mailing list, given with the `id` argument.

The page does not need to be published. The sender must be allowed to use mod\_mailinglist and view the page. The mailing is queued for immediate sending.

The `on_success` argument decides which actions are triggered after the page has been sent.

The required `id` argument identifies the page to send. `on_success` can be repeated. The action resolves the named `mailinglist_test` resource and queues the mailing with `is_send_all`, so all active test recipients receive it.

```django
{% button text="Send test" action={mailing_page_test id=id on_success={reload}} %}
```

An error is shown when the test list is missing or the current user is not allowed to send the page.

License: 

Attribution: 

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