add Send email function but need test