added email sample and application config sample