0) {
@set_time_limit(300);
$sm1 = new SmartMailer();
$sm1->checkVersion("1.01");
$sm1->smtpSetup("mail.7zg.com", "", "", "");
$sm1->component = "SMTP";
$sm1->tmpFolder = "";
$sm1->embedImages = false;
$sm1->progressBar = "";
$sm1->ignore_errors = true;
$sm1->setFrom($_POST['name'], $_POST['email']);
$sm1->setTo("Steve", "ms.willis@tiscali.co.uk");
$sm1->setCc("", "");
$sm1->setBcc("Chris", "chris_sanders@smallplanit.co.uk");
$sm1->setSubject("".$_POST['subject']."");
// using static for body
$sm1->setBody_Static_html("Message from: ".$_POST['name']."\n\nReply Address: ".$_POST['email']."\n\nComments:\n".$_POST['comment']."");
// Attachments none
$sm1->sendMail("one");
$GoTo = "contact.php?message=Your message has been successfully sent, thank you!";
if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {
$GoTo .= (strpos($GoTo, '?')) ? "&" : "?";
$GoTo .= $HTTP_SERVER_VARS['QUERY_STRING'];
}
header(sprintf("Location: %s", $GoTo));
}
$SM_mailAction = getMailAction();
?>
Steve Martyn - keeping th Spirit of the 60's Alive.