Expose $message to email layout

For instance when wanting to embed an image in email layout file.