configurable use of TLS

Switching the port is not enough, need to actually change which smtplib is used.

Thought about doing it purely based on port (e.g. if port != 587 use SSL), thought it was nicer having a separate config - most email clients seem to.