Email config moved to conf file. Improved configuration for non Gmail servers, parameter added to choose between communication methods