added sme logic for emails to addUsersToevent
merged everything again