Tidied up the sending of the form data using CF7 core code