Fix plain-text notification email formatting
- Send the text/html header only when an HTML-capable mail system is active, so plain-text emails keep their line breaks instead of collapsing to one line.
- Flatten links to a bare URL in plain-text emails so the secure link is no longer repeated in a footnote at the bottom