Whenever it shall be necessary for the county to proceed under this article and the owner of the property or other responsible person resides outside the limits of the county or cannot be found after diligent search, service of the notice required by section 34-38 shall be made by posting a copy of the notice on the property involved and by publishing the notice in the legal organ of the county once a week for four consecutive weeks, the last notice to be not longer than ten days nor less than one day prior to the hearing. Where the address of the person to be served is known, or where there is a last known address, a copy of the notice shall also be mailed to such person at that address by certified mail. In all cases where personal service cannot be made upon such person within the county, the case shall proceed as quasi in rem, and the execution shall issue in rem.