Same procedure on both phones as they both run the same iOS. You have to create a new account definition in Settings / Mail, Contacts & Calendars. Pick Exchange for a regular (i.e., Hotmail) account or Outlook.com for a corporate (i.e., Office365) account.