Escape user label before sending in XML
Ignore set_magic_quotes_runtime (deprecated)
Replace EncodeQ function by the latest phpmailer version. We should probably totally switch to this mailer.
Optionally pass images to be attached in the layout.
Add an HTML layout for the emails, and pass a "main link" either by argument or from the main node of the notification