added the send mail functionality which sends mail locally for now