Server-side mail handler working