NEW: Added an optional notification for event administrators.
Moved ticket generation code out of email, as it may be needed in other contexts.