Added code for sending email to user.
Added check to make sure no sending email to ones with missing emails.