Send mail functionality implemented.