Section 2. (a) Any of the following acts in this commonwealth, effected by mail or otherwise, by an unauthorized foreign or alien insurer: (1) the issuance or delivery of contracts of insurance to residents of this commonwealth or to corporations authorized to do business therein; (2) the solicitation of applications for such contracts; (3) the collection of premiums, membership fees, assessments or other considerations for such contracts; or (4) any other transaction of business, is equivalent to and shall constitute an appointment by such insurer of the commissioner of insurance 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, suit or proceeding instituted by or on behalf of an insured or beneficiary arising out of any such contracts of insurance, and any such act shall be signification of its agreement that such service of process is of the same legal force and validity as personal service of process in this commonwealth upon such insurer.
(b) Such service of process shall be made by delivering to and leaving with the commissioner of insurance or some person in apparent charge of his office two copies thereof and the payment to him of such fees as may be prescribed by law. The commissioner of insurance shall forthwith mail by registered mail one of the copies of such process to the defendant at its last known principal place of business, and shall keep a record of all process so served upon him. Such service of process is sufficient, provided notice of such service and a copy of the process are sent within ten days thereafter by registered mail by plaintiff or plaintiff's attorney to the defendant at its last known principal place of business, and the defendant's receipt, or receipt issued by the post office with which the letter is registered, showing the name of the sender of the letter and the name and address of the person to whom the letter is addressed, or if acceptance was refused by the defendant or its agent the original envelope bearing a notation by the postal authorities that receipt was refused, and the affidavit of the plaintiff or plaintiff's attorney showing compliance herewith are filed with the clerk of the court in which such action is pending on or before the date the defendant is required to appear, or within such further time as the court may allow.
(c) Service of process in any such action, suit or proceeding shall in addition to the manner provided in subsection (b) be valid if served upon any person within this commonwealth who, in this commonwealth on behalf of such insurer, is—
1. Soliciting insurance, or
2. Making, issuing or delivering any contract of insurance, or
3. Collecting or receiving any premium, membership fee, assessment or other consideration for insurance; provided notice of such service and a copy of such process is sent within ten days thereafter by registered mail by the plaintiff or plaintiff's attorney to the defendant at the last known principal place of business of the defendant, and the defendant's receipt, or the receipt issued by the post office with which the letter is registered, showing the name of the sender of the letter and the name and address of the person to whom the letter is addressed, or if acceptance was refused by the defendant or its agent the original envelope bearing a notation by the postal authorities that receipt was refused, and the affidavit of the plaintiff or plaintiff's attorney showing a compliance herewith are filed with the clerk of the court in which such action is pending on or before the date the defendant is required to appear, or within such further time as the court may allow.
(d) No plaintiff shall be entitled to a judgment by default, or a judgment with leave to prove damages, or a judgment pro confesso under this section until the expiration of thirty days from date of the filing of the affidavit of compliance.
(e) Nothing in this section contained shall limit or abridge the right to serve any process, notice or demand upon any insurer in any other manner now or hereafter permitted by law.