caddy-mailout-handler
A frontend handler for Caddy's mailout plugin
Usage
Simply import Mailout
. It is constructed with two arguments:
endpoint
which is the endpoint the plugin is atnotifier
which will be called with the result (akaMessage
) of trying to post the data
To send the actual data
to the endpoint, just call the send
method on the constructed Mailout.
Message
This object (passed to your notifier
) has the following structure:
These should be enough to update the UI as needed.
data
It should be an object having at least email
as key and others will also be handled:
Example
; ; // Triggered by some event mailout.send;