issue 4526: fixed send email function when click "Send Email & Close" button