How to create multiple numbered tickets and send them in an email