added defaultSettings to mail