Better fragmented email sending, wrote more tests