added auto ticket processing and email template