Any of the following acts in this state, effected by mail or otherwise, by an unauthorized foreign or alien insurer:
is equivalent to, and shall constitute, an appointment by such insurer of the commissioner and his successor or successors in office to be its true and lawful attorney, upon whom may be served all lawful process in any action or proceeding instituted by, or on behalf of, an insured or beneficiary arising out of any such contract of insurance; and any such act shall be signification of the insurer's agreement that such service of process is of the same legal force and validity as personal service of process in this state upon such insurer.