First you need to check official instructions from Microsoft regarding messages that are stuck or not being sent; then use the options menu to check if the incoming or outgoing servers are configured properly. In most cases, this is the reason Outlook is giving errors.