예제 #1
0
 /**
  * Send the order notification MSN messenger message
  */
 public function SendNotification()
 {
     $this->_msnfromuser = $this->GetValue("msnfrom");
     $this->_msnfrompass = $this->GetValue("msnpass");
     $this->_msntouser = $this->GetValue("msnto");
     $this->_message = $this->BuildMsnMessage();
     $sendMsg = new sendMsg();
     $sendMsg->simpleSend($this->_msnfromuser, $this->_msnfrompass, $this->_msntouser, $this->_message);
     // Convert the response to a friendly message
     if ($this->_makefriendly($sendMsg->result, $err)) {
         $result = array("outcome" => "success", "message" => sprintf(GetLang('MSNSentUser'), $this->_msntouser));
     } else {
         $result = array("outcome" => "fail", "message" => $err);
     }
     return $result;
 }
예제 #2
0
<?php

error_reporting(E_ALL);
include 'sendMsg.php';
$sendMsg = new sendMsg();
$sendMsg->simpleSend('*****@*****.**', 'password', '*****@*****.**', 'message');
echo $sendMsg->result . ' ' . $sendMsg->error;