# dialog\_mail\_page

Source: https://zotonic.com/docs/1793/dialog_mail_page

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

Language: en



Shows the dialog to mail the current page ([resource](/id/doc_glossary#term-resource)) to a single e-mail address. This is used in the frontend of a site to “share” the current page over e-mail.

The required `id` argument identifies the page. `on_success` can be repeated to run actions after the message has been queued. The dialog validates the entered email address and sends the category-aware mailing representation through `z_email:send_page/3`.

```django
{% button text="Email this page" action={dialog_mail_page id=id on_success={dialog_close}} %}
```

License: 

Attribution: 

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