Send mail function added.