dude, it would be better if you would collect rules for a valid email id. Then just a small code would generate it. Very simple.