remove extra space
add option to restrict sending by date