fix close connection EMAIL sending Works