Settings: Email fixes

I suggest these changes for mailing. 

The exact SMTP options should also be configurable. I suggest the usage of URLObject here to parse an URL in the form of <smtp://username:password@localhost:25/> and use this to fill the EMAIL_* options.