fixed bug with config file. now email notification works fine.