Welcome Guest, Not a member yet? Register   Sign In
PostageApp and CI
#1

[eluser]theknight[/eluser]
I have integrated postage app into my CI application, it is not executing, I have tried the following:

Within a cron file.

Code:
//send email
  if($this->mailing->cronSend($to, $subject, $body)==true){
  
  
  $Id = $queued_mail['Id'];
  //if successfully sent, then update db table
  //get date sent
  $DateSent = date('Y-m-d H:i:s');
  
   $EmailsU = array(
               'DateSent' => $DateSent,
   );
  
   $this->db->where(array('Id' => $Id));
   $q = $this->db->update('Emails', $EmailsU);

  
  
  }

Then in the mailing model:

Code:
$this->postageapp->from('[email protected]');
$this->postageapp->to($to);
$this->postageapp->subject($subject);
$this->postageapp->message($body);



$this->postageapp->send(); # returns JSON response from the server



  return true;
    }

It is however not sending an email to the client. Any idea why this is not working? Cheers.
#2

[eluser]theknight[/eluser]
Got it to work.

Seems like the postageapp.php file in the config directory was corrupted. So had to replace it.
#3

[eluser]Unknown[/eluser]
Postage Made Easy! Does your business require you to visit the post office frequently? You could go through the hassle of determining the cost of each order because i am a <a href="http://www.lionleaf.com">web application developer</a> and want more information about the postage app and Cl
#4

[eluser]Unknown[/eluser]
great it works well




Theme © iAndrew 2016 - Forum software by © MyBB