SelectTemplate("newsletter.htm"); $email->SelectTemplate("lib/email/newsletter.htm"); //Change me $redirectOnComplete = "thankyou.htm"; $emailFrom = "Orthodontic and Facial Treatments Site "; $emailTo = "newsletter@orthodontiste.co.uk"; $subject = "Newsletter Signup"; $required = array( "FirstName:textbox", "Surname:textbox", "EmailAddress:email" ); $notrequired = array( ); form2mail($template,$email,$required,$notrequired,$redirectOnComplete,$emailFrom,$emailTo,$subject); $template->Execute(); echo $template->getHTMLDump();