Extension:SemanticMailMerge

The SemanticMailMerge extension integrates with Semantic MediaWiki to merge each result of a semantic query into a template and email the resultant HTML to recipients specified in the query.

Usage
Akin to the standard 'template' result format, this extension requires two pages: one with the  query, and one template (specified in the query). The output of the query is the same as the 'table' result format, and the data from each row is put into the template and emailed to all email addresses specified in the 'To' column. You have to use  as the result format option within the semantic query.

The actual email-sending is done separately, so that it can be scheduled (by an external task system such as crontab or Scheduled Tasks). On the required schedule, the  file should be called:

Outstanding problems

 * Page moves. If a query page is moved, the data referring to its old location is not purged.
 * Custom recipients' column. Currently hard-coded as 'To'. Perhaps not customizable, but should at least be localized.
 * Links in the HTML for the email need to be expanded to be canonical URLs.
 * Permit more than one query on a page (does an query have an identifier?). Currently uses the page title to identify it.