You can recover deleted emails in Gmail for up to 30 days before they are permanently gone by sorting through the Trash folder.
You can check your iCloud email on a computer through the Mail app on a Mac or through iCloud's desktop website.