adding emails to the emails collection when sent, and updating their status after sending, fixes #5, fixes #2