【发布时间】:2014-03-08 13:09:17
【问题描述】:
Magento 在订单确认和创建发货时发送短信,我们有下面的 PHP 代码:
<?php
$ch = curl_init();
$user="**@bindaaslo.com:**";
$receipientno="98910***";
$senderID="TEST SMS";
$msgtxt="this is test message , test"; curl_setopt($ch,CURLOPT_URL, "http://api.mVaayoo.com/mvaayooapi/MessageCompose"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "user=$user&senderID=$senderID&receipientno=$receipientno&msgtxt=$msgtxt"); $buffer = curl_exec($ch); if(empty ($buffer)) { echo " buffer is empty "; } else { echo $buffer; } curl_close($ch);
?>
【问题讨论】:
-
此扩展程序已经为管理员和客户magecomp.com/magento-sms-notification.html提供发货通知