SECURITY FIXES: - Escape all user-controlled values (hostname, reason, details) to prevent XSS - Fix endpoint name from 'assets.detail' to 'assets.get_asset' - Fix fallback URL to be absolute instead of relative path - Remove render_email() to avoid subject duplication in email body - Check recipients exist before expensive HTML generation - Build email template directly with proper escaping throughout