Adding sending mail funcionallity.