Auto determine sending type.