email notifications & query strings with authentication

Style/TrailingWhitespace: Trailing whitespace detected.