CRM-13965 : activity creation code and email sending