SelectTemplate("patient-registration.htm"); $email->SelectTemplate("lib/email/patient-registration.htm"); //Change me $redirectOnComplete = "thankyou.htm"; $emailFrom = "Orthodontic and Facial Treatments Site "; $emailTo = "referral@orthodontiste.co.uk"; $subject = "Patient Registration"; $required = array( "FirstName:textbox", "Surname:textbox", "DateOfBirth:textbox", "Address:textbox", "Postcode:textbox", "Telephone:textbox" ); $notrequired = array( "Email:email", "HearPractice:dropdown", "OurWebsite:dropdown" ); form2mail($template,$email,$required,$notrequired,$redirectOnComplete,$emailFrom,$emailTo,$subject); $template->Execute(); echo $template->getHTMLDump();