Sending emails with blocks or JavaScript


Sending emails requires specifying a table, view and the row. This is quite a comprehensive configuration and we have therefore not included this as a block. It probably is possible from JavaScript actions, but quite fiddly to set up. Nevertheless, wanting to send an email from an action is quite a common thing to do.

The best way of doing this currently is to create a new table where each row represents an email to be sent. Create the view of this table to represent the body of the email. Then add a trigger to this table with the Insert event type, set to the send_email action which you configure with the chosen view. Now, to send an email, all you have to do is to insert a row into this table. You can do that with the insert block in the rows category.