Just been asked by a school if they could have an alert when their policies page is visited. The Email API requires a logged in user, but the Form widget does not. Using this code in an HTML widget with a Form on the page, you can auto-submit the form and trigger an email:
<script>
setTimeout(function(){
$('.btn-success').click();
}, 5000);
</script>
<style>
div[data-content-uuid="FORM_WIDGET_UUID"] { /* Hides the form from view */
display: none !important;
}
</style>