done email send function