fix send email issue - missing block