Weijian Zhou and Yanyan Zhang for iteration 4

This commit contains the sendEmail and send multiple emails functions.