How I can activate the iPhone which is asking for credentials I don't remember? I was going to sell my iPhone tomorrow, and I thought I'd reset it so that none of my things were on there. I had already made an iTunes and AppleID for the buyer and was going to set up the phone for them.

When one resets a phone it asks for the AppleID password. I entered that and then the iPhone was reset.

When it came to activating the phone again, it is asking for an iCloud account email and password which I can't remember. I know the password its just the email, so I went to reset my iCloud email and it won't let me - only my AppleID which isn't the same.

Can anyone suggest how I can activate the iPhone?
Don't set it up for the next owner, let them do it themselves. Otherwise the account is yours, not theirs.
What to do before selling or giving away your iPhone, iPad, or iPod touch



  If you still have your iOS device
  Before you sell or give away your iOS device, make sure that you've removed all of your personal information. Follow these steps to protect your data and get your device to its factory default state for the new owner:
  
  
  Back up your device.  
  Sign out of iCloud:
  
  Tap Settings > iCloud, scroll down, and tap Sign Out. In iOS 7 or earlier, tap Delete Account.  
  Tap Sign Out again, tap Delete from My iPhone, then enter your password.   
  
  Go to Settings > General > Reset, then tap Erase All Content and Settings.
  
  This will completely erase your device, including any credit or debit cards you added for Apple Pay and any photos, contacts, music, or apps. It will also turn off iCloud, iMessage, FaceTime, Game Center, and other services.  
  If you're using iOS 7 or later and have Find My iPhone turned on, your Apple ID and password will be required. After you provide your password, the device will be erased and removed from your account so that the next owner can activate it.
  Your content won't be deleted from iCloud when you erase your device.  
  
  Contact your carrier for guidance on transferring service to the new owner. If you aren't using a SIM-card with your device, you can contact them to get help transferring service to the new owner.  
  
  
  When the new owner turns on the device for the first time, Setup Assistant will guide them through the setup process.
  
  Important: Don't manually delete contacts, calendars, reminders, documents, photo streams, or any other iCloud data while signed in to your iCloud account, or the content will also be deleted from the iCloud servers and all of your devices that are signed in to iCloud.