1. Go to dagon design, download their secure form mailer
Secure PHP Form Mailer Script · Dagon Design
2. upload it to your web directory
3. create a file contact.php in the root directory
Code:
include_once('Smarty.class.php');
$main_smarty = new Smarty;
include('config.php');
include(mnminclude.'html1.php');
include(mnminclude.'ts.php');
include(mnminclude.'link.php');
include(mnminclude.'tags.php');
include(mnminclude.'search.php');
include(mnminclude.'smartyvariables.php');
//include("./contactus/contact.php");
// module system hook
$vars = '';
check_actions('search_top', $vars);
// breadcrumbs and page title
$navwhere['text1'] = "Contact Us";
$navwhere['link1'] = getmyurl('contact');
$main_smarty->assign('navbar_where', $navwhere);
$main_smarty->assign('posttitle', " / Contact Us");
//sidebar
//$main_smarty = do_sidebar($main_smarty);
// pagename
define('pagename', 'contact');
$main_smarty->assign('pagename', pagename);
// show the template
$main_smarty->assign('tpl_center', $the_template . '/contact_center');
$main_smarty->display($the_template . '/pligg.tpl');
4. create a file contact_center.tpl in your template directory
code:
Code:
{php}
include('./contactus/contact.php');
{/php}
NB: I renamed the folder dd-formmailer to contactus and the file dd-formmailer.php to contactus.php if i hadn't it would show include('./dd-formmailer/dd-formmailer.php');
5. Edit the dd-formmailer.php file according to their instructions.