mailinglist_unsubscribe

Cancel a mailing list subscription. The recipient id is given with the id argument.

The on_success argument decides which actions are triggered after unsubscribe is successful; on_error actions are triggered when unsubscribe fails.

Both action arguments can be repeated. The id is passed to m_mailinglist:recipient_delete/2; the resource representing the mailing list is not deleted.

{% button text="Unsubscribe" action={mailinglist_unsubscribe id=q.id on_success={show target="done"} on_error={show target="failed"}} %}

Edit on GitHub

Referred by

Category

Actions

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