My question involves a marriage in the state of: California

I would like to know if it is legal for the petitioner's attorney to contact a defendant by email, in a divorce proceeding, to obtain the defendant's current address, in order to serve the defendant papers?