email script added