Should exhaust fans vent outdoors or into attic spaces

Should exhaust fans vent outdoors or into attic spaces?