Made email settings optional in setup, but more options when you want to
use an SMTP server