Mail function added.