added mail php, and other changes