Add send mail functionality