Advertisement
Guest User

Nuno

a guest
Aug 6th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. public function sendsms() {
  2. $de = "XXXXXX";
  3. $pass = "XXXXX";
  4. $send['para'] = $this->input->post('funcionario_mensagem'); //turn input into an array
  5. $para = $send['para'];
  6. $para = implode(",", $para); //separte numbers by a comma
  7. $mensagem = $this->input->post('mensagem');
  8. $url = "https://api.infobip.com/sms/1/text/query?username=". $de ."&password=".$pass."&to=".$para."&text=".$mensagem;
  9. $this->load->helper('html');
  10. echo link_tag($url);
  11. echo 'SMS Sent, thank you';
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement