edited script to ignore email server if not provided in config and respect passing of argument emails-flag. Also, if defined in the config, proxy settings are used.
added a proxy section with an option http_proxy.
accidentally overlooked the fact that the sendmail statement was commented out.
Merge branch 'fix_proxy'