setSubject($subject); $sMessage->setTo($to); $sMessage->setFrom($cphp_config->smtp->from); $sMessage->setBody($text); $sMessage->addPart($html, "text/html"); echo("
From: {$cphp_config->smtp->from}
To: {$to}
Subject: {$subject}

{$text}

{$html}
"); //$mail_transport->send($sMessage); } $sPageTitle = ""; $sPageContents = ""; $sError = ""; $router = new CPHPRouter(); $router->allow_slash = true; $router->ignore_query = true; $router->routes = array( 0 => array( "^/$" => array( 'target' => "modules/index.php", '_padded' => false ), "^/sign-up$" => "modules/signup.php", "^/login$" => "modules/login.php", "^/campaign/([a-zA-Z0-9-]+)$" => "modules/landing.php", "^/campaign/([a-zA-Z0-9-]+)/subscribe$" => "modules/subscribe.php", ) ); $router->RouteRequest(); echo(NewTemplater::Render("layout", $locale->strings, array("contents" => $sPageContents, "title" => $sPageTitle, "padded" => (isset($router->uVariables['padded']) ? $router->uVariables['padded'] : true))));