Nearly have send to publish working, it's all wired up in the UI to the controller, just need to implement the logic.