PHP would not look like :p
SQL query would look like
// update matching record
$query = "UPDATE table2 t2 INNER JOIN table1 t1 ON (t2.someID=t1.someID) SET t2.email=t1.email WHERE t2.email IS NULL";
If you need a different answer it's because you should have asked a different question. Like
How do I add records to a table but ensure that emails are unique?
answer: Unique index on emails column