...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
<?php class MailUpWsSend { protected $WSDLUrl = "https://wsvc.ss.mailup.it/MailupSend.asmx?WSDL"; //... public function loginFromId() { //... } public function logout() { //... } public function sendMessageNL($params) { try { $params = array_merge((array)$params, array("accessKey" => $this->accessKey)); $this->soapClient->sendMessageNL($params); } catch (SoapFault $soapFault) { var_dump($soapFault); } } } $WsSend = new MailUpWsSend(); $WsSend->loginFromId(); $filename = "10_201105031527211234.csv" uploadFile($filename) or die("Unable to upload list of recipients through FTP"); $sendingDate = date ("c", mktime(13,20,0,7,1,2013)); //set date with 2013-07-01T13:20:00+00:00 $sendMessageNLData = array("fileName" => $filename, "separator" => ";", "listId" => "10", "listGuid" => "0e591119-cd77-4157-9379-6ac75335664", "messageId" => "151", "senderName" => "Your Dealer", "sender" => "sender@example.com", "subject" => "Best Offer of the week", "timeDateSending" => $sendingDate ); $WsSend->sendMessageNL($sendMessageNLData); $WsSend->logout(); ?> |
...
Related pages
Child pages (Children Display) |
---|