Update to use profile for mail settings