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.