An affidavit may be used to prove the service or publication of any notice required or provided for by any of the provisions of this part in the same manner and to the same extent as provided for in Sections 2009 to 2015, inclusive, of the Code of Civil Procedure, and the affidavit shall be received as prima facie evidence of the service or publication in any court or elsewhere.