server.php is at the same level as mailapp.php for rest call url