implemented send record as email