I assume you are referring to sending a message from Mail with your iCloud account. You might want to verify/fix your keychain in Keychain Access-Keychain First Aid. If this does not help you can simply remove the account and readd. Being its an IMAP account you won't loose any email.