fix bug of sent mail