creating CIDs for users
#4 new helper for sending emails