This script will send an email with a list of pages that have an expired state.
number [] issues = selectPages("stateexpiry > startOfDay()"); string body = "<p>The following pages are past the expiry date:</p>"; body += "<ul>"; for(number i in issues) { body += "<li><a href=\"" + i.tinyLink + "\">" + i.title + "</a></li>"; } body += "</ul>"; return body;
See Other Recipes
See More Documentation