MOdifed codes for send Mail