@ -360,22 +360,32 @@ if ($hesk_settings['attachments']['use'] && ! empty($attachments) )
}
}
// Insert ticket to database
$ticket = hesk_newTicket($tmpvar);
// Notify the customer
hesk_notifyCustomer();
// Need to notify staff?
// --> From autoassign?
if ($tmpvar['owner'] && $autoassign_owner['notify_assigned'])
// Check to see if the email address of the user is verified. If not, add the ticket to the stage_ticket table and send verification email
$verifiedEmailSql = "SELECT `Email` FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."verified_emails` WHERE `Email` = '".hesk_dbEscape($tmpvar['email'])."'";