dialog_mail_page

Shows the dialog to mail the current page (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.

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

Edit on GitHub

Referred by

Category

Actions

Browser actions that templates attach to events with Zotonic's wiring system.