SelectTemplate("contact.htm"); $email->SelectTemplate("lib/email/contact.htm"); //Change me $redirectOnComplete = "contact-thankyou.htm"; $emailFrom = "Joy Odili Website "; $emailTo = "info@joyodili.co.uk"; $subject = "Website Contact Form"; $required = array( "FirstName:textbox", "Surname:textbox", "Email:textbox", "Telephone:textbox", ); $notrequired = array( "RequestDescription:textbox", "Surname:textbox", ); form2mail($template,$email,$required,$notrequired,$redirectOnComplete,$emailFrom,$emailTo,$subject); $template->Execute(); echo $template->getHTMLDump();