create and save mail settings