$mail->bodyAdd("In order to gain access to all of the web site functionality please click on here: {$url}"); $mail->bodyAdd(""); $mail->bodyAdd("If you should not have received this e-mail, please click on the e-mail link below and just put \"remove\" in the heading and we will remove your details from our system."); $mail->bodyAdd(""); $mail->bodyAdd("Regards"); $mail->bodyAdd(""); $mail->bodyAdd("The Fast Food Jobs Team"); $mail->bodyAdd(""); $mail->bodyAdd("Tel: 0845 644 8252"); $mail->bodyAdd("*****@*****.**"); $mail->send(); $adminMail = new Emailer(); $adminMail->setTo($configuration["adminEmail"]); $adminMail->setFrom($configuration["fromEmail"]); $adminMail->setSubject("New Sign up"); $adminMail->bodyAdd("Dear admin,"); $adminMail->bodyAdd("Just to let you know that new member"); $adminMail->bodyAdd("Name: " . $first_name . " " . $last_name); $adminMail->bodyAdd("Emai: {$email}"); $adminMail->bodyAdd("Role: {$role}"); $adminMail->bodyAdd("has just joined Fast Foods."); $adminMail->send(); header("Location: register_thankyou.php"); exit; } } $errorText = "<ul>" . $errorText . "</ul>"; } require "top.php"; ?>
} if ($supplier->tel != "" && ($result = validate($supplier->tel, "phonenumber", 255)) !== true) { $errorText .= "<li>Telephone number is {$result}"; } if ($errorText == "") { if (!file_exists("logos")) { mkdir("logos"); } $supplier->Save(); if ($isNew == 1) { require "class.email.php"; $mail = new Emailer(); $mail->setFrom($configuration["fromEmail"]); $mail->setTo($configuration["adminEmail"]); $mail->setSubject("New Services Taken"); $mail->bodyAdd("Dear admin,"); $mail->bodyAdd(""); $mail->bodyAdd("Just to let you know the following services have been taken by " . $user->first_name . " " . $user->last_name); $mail->bodyAdd("Service: supplier"); $mail->send(); } header("Location: supplier_success.php"); } else { $errorText = "<ul>" . $errorText . "</ul>"; } } ?> <?php require "top.php"; ?>
$link = $_POST["link"]; if (($result = validate($heading, "", 20)) !== true) { $errorText .= "<li>The heading is {$result}"; } if (($result = validate($text, "", 50)) !== true) { $errorText .= "<li>The main text is {$result}"; } if (($result = validate($link, "", 255)) !== true) { $errorText .= "<li>The URL link is {$result}"; } if ($errorText == "") { $mail = new Emailer(); $mail->setTo($configuration["adminEmail"]); $mail->setFrom("*****@*****.**"); $mail->setSubject("Classified Advert"); $mail->bodyAdd("NEW CLASSIFIED ADVERT"); $mail->bodyAdd(""); $mail->bodyAdd("User: "******"Heading: {$heading}"); $mail->bodyAdd("Text: {$text}"); $mail->bodyAdd("URL: {$link}"); $mail->bodyAdd(""); $mail->bodyAdd("END"); $mail->send(); header("Location: classified_success.php"); } else { $errorText = "<ul>" . $errorText . "</ul>"; } } require "top.php"; ?>
$cv_last_name = $data[1]; $cv_email = $data[2]; if ((bool) $_POST["submitting"]) { $jobId = (int) $_POST["jobIds"]; $queryJob = $db->Query("SELECT contact_email FROM job WHERE jobid='{$jobId}'"); if ($db->Rows() <= 0) { // shouldn't really ever get here exit; } $data = mysql_fetch_row($queryJob); $job_contact_email = $data[0]; $mail = new Emailer(); $mail->setTo($cv_email); $mail->setSubject("An employer wishes to contact you"); $mail->setFrom($configuration["fromEmail"]); $mail->bodyAdd(generateEmail($cv_first_name, $cv_last_name, $jobId, $job_contact_email)); $mail->send(); header("Location: cv_contact_success.php"); exit; } $queryJob = $db->Query("SELECT jobid, position, location, contact_email FROM job WHERE onlineuser_onlineuserid='" . $user->onlineuserId . "' AND dt_expire>'" . date("Y-m-d") . "'"); if ($db->Rows() <= 0) { // you will only reach here if the current user does not have a live job exit; } $jobCount = $db->Rows(); if ($jobCount == 1) { $jobId = mysql_fetch_row($queryJob); $jobId = $jobId[0]; } else { $jobId = "";