# controller\_admin\_mailing\_run\_content

Source: https://zotonic.com/docs/2708/controller_admin_mailing_run_content

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

Language: en



Serve the saved HTML copy of a mailing run for a specific language.

The `admin_mailing_run_content` dispatch maps `/admin/mailings/run/:run_id/content/:language` to this controller. The `run_id` identifies the mailing run and `language` selects its stored copy. The response contains the saved HTML directly; it does not render the current page again.

Access control
--------------

The controller requires the `use mod_mailinglist` permission and retrieves the copy through `m_mailinglist_run:content/3`. The model requires visibility of the mailed page and edit access to the mailing list. For the test mailing list, the authenticated sender can also access their own run. Missing copies and model access errors are reported as a missing resource.

Browser isolation
-----------------

Responses carry cache prevention and no-index headers. A Content Security Policy sandbox blocks scripts and form submissions, restricts framing to the same site, and disallows base URLs. Images, styles, and fonts may load over HTTP or HTTPS; data images and inline styles are also allowed. This permits a preview of the saved email layout while keeping its HTML isolated from the administration UI.

See <a href="/id/doc_controller_controller_admin_mailing_run" class="doc-reference doc-reference-controller"><code>controller#controller_admin_mailing_run</code></a> for the history and status pages.

License: 

Attribution: 

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