email notifications & query strings with authentication

Metrics/LineLength: Line is too long. [121/80]<br>Style/IndentationWidth: Use 2 (not 1) spaces for indentation.<br>Style/Tab: Tab detected.