Пример #1
0
            $mail->bodyAdd("Dear {$first_name} {$last_name}");
            $mail->bodyAdd("");
            $mail->bodyAdd("Thank you for registering with Fast Food Jobs but as we take your privacy seriously, we just wanted to check you did register with our site.");
            $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>";
}
Пример #2
0
}
$data = mysql_fetch_row($results);
$cv_first_name = $data[0];
$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);