Email cron setup

Hi,

I need help setting up a cron email. Here is a part of the code :

public function email() {

    $this->load->model("email_list_model");
    $result = $this->email_list_model->get_one(md5("kq1-7080"));
    //print_r($result);
    $what = $result->what;
    $location = $result->city;
    $country = $result->country;

    if ($location == "")
        $location = " ";
    if ($what == "")
        $what = " ";
    $params = array(
        "q" => $what,
        "l" => $location,
        "start" => 0,
        "limit" => 50,
        "userip" => $this->input->ip_address(),
        "useragent" => $this->input->user_agent(),
        "jt" => $jt,
        "radius" => 30,
        "chnl" => "email",
        "co" => $country,
        "fromage" => 2
    );
    $results = $this->indeed->search($params);



    if ($location != " ")
        $location.=", ";

    $email = $this->parser->parse('email', array("what" => $what,
        "location" => $location,
        "country" => $country,
        "results" => $results["results"],
        "id" => md5("kq1-" . $result->id),
        "total" => $results["totalResults"]), true);
    echo $email;

And here is the how it appears :

http://jobs-network.net/cron_emails/email

I need help to send/setup the cron to send emails.

So all you need are instructions on how to set up a cron job? Or do you want help working on the script run by the cron?

Hi,

Thanks for your respond. Actually i want to run the script by the cron. I don`t know how exactly i need to send the script to receive email. I have to send this to list of users. I have an example

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.