make send email more logic