email notifications & query strings with authentication

unexpected token $end