asimus adlı üyeden alıntı: mesajı görüntüle
http://toplusms.netgsm.com.tr/dokuman/default.asp burayı örnek gösterdiler ama php içinde xml ye numaraları nasıl göndereceğim anlayamadım. Ayrıca 1 mesajı n adet kullanıcıya göndermek için bir form oluşturup onunla göndermeyi düşünüyordum ben olmaz mı acaba?
pm gönderiyorum.


pm' e gerek yok aslında herkes görsün:

<?  
function XMLPOST($PostAddress,$xmlData)
{
		$ch = curl_init();
		curl_setopt($ch, CURLOPT_URL,$PostAddress);
		curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,1);
		curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0);
		curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
		curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: text/xml"));
		curl_setopt($ch, CURLOPT_TIMEOUT, 30);
		curl_setopt($ch, CURLOPT_POSTFIELDS, $xmlData);
		$result = curl_exec($ch);
		return $result;
}
$xml='<?xml version="1.0" encoding="iso-8859-9"?>
<mainbody>
	<header>
		<company>NETGSM</company>
        <usercode>KullaniciAdi</usercode>
        <password>Sifre</password>
		<startdate></startdate>
		<stopdate></stopdate>
	    <type>1:n</type>
        <msgheader>MesajBasligi</msgheader>
        </header>
		<body>
		<msg><![CDATA[Test Mesaji]]></msg>
		<no>905121231212</no>
		</body>
</mainbody>';
$gelen=XMLPOST('http://api.netgsm.com.tr/xmlbulkhttppost.asp',$xml);
echo $gelen;
?>

önce wp'de bir page oluşturup, ardından form ekleyin, formda kullanıcı girmesi gereken şeyleri girsin, ardından yukarıdaki kodu bir gonder.php gibi kaydedip, POST olarak gerekli şeyleri göndertin bu gonder.php'ye...

daha sonra kullaniciadi sifre yazan yerlere $_POST['kullaniciadi'] ve $_POST['sifre'] gibi değerleri gonder.php içerisinde önceden kaydedip, xmldeki veride değişken olarak yazdırın.

hepsi bu.