email notifications & query strings with authentication

Style/TrailingBlankLines: Final newline missing.