email notifications & query strings with authentication

Metrics/LineLength: Line is too long. [100/80]<br>Style/AndOr: Use `&&` instead of `and`.<br>Style/IndentationWidth: Use 2 (not 1) spaces for indentation.<br>Style/Tab: Tab detected.