It isnt illegal to agree through email, but it most likely wont hold up in court.

If email is absolutely the only way you can do it, then go for it. Having a signature is stronger than agreement by mouth.