ther head of the company or corporation, the registered agent, secretary, cashier or managing agent thereof or to the secretary, stenographer or office assistant of the president or other head of the company or corporation, registered agent, secretary, cashier or managing agent. (10) If the suit be against a foreign corporation or nonresident joint stock company, partnership or association doing b