<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Bom dia,<div><br></div><div>Eu fiz um em PHP onde importo os numero com cvs e depois um campo onde digito a msg e ele envia para todos que importei para o banco isso para realizar campanha com asterisk e chan_dongle</div><div><br></div><div>att</div><div><br></div><div><br></div><div>Eduardo Souza<br><div><div>Em 11/12/2013, à(s) 22:20, Leomar Soares de Almeida &lt;<a href="mailto:leomarsa@gmail.com">leomarsa@gmail.com</a>&gt; escreveu:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Boa noite galera.<div><br></div><div><br></div><div>Alguém consegue fazer envia de SMS por chan_dongle.</div><div><br></div><div><br></div><div>segue script php com modelo de pagina.</div><div><br></div><div>
pagina smser.php</div><div><br></div><div><div>&lt;?</div><div>/*</div><div>&nbsp;Simple and easy for modification, PHP script for SMS sending through HTTP with you own Sender ID and delivery reports.&nbsp;</div><div>&nbsp;You just have to type your account information on <a href="http://www.2-waysms.com/">www.2-waysms.com</a> and upload file on server.</div>
<div>&nbsp;</div><div>&nbsp;Istruction:</div><div>&nbsp;</div><div>&nbsp;// Find 2 parameters in &lt;body&gt; and type your account information on <a href="http://www.2-waysms.com/">www.2-waysms.com</a></div><div>&nbsp;</div><div>&nbsp;1. &nbsp;$from = "********"; // Change ********, and put your SMS Number in <a href="http://www.2-waysms.com/">www.2-waysms.com</a> account</div>
<div>&nbsp;2. &nbsp;$token = "********"; // Change ********, and put your token code in <a href="http://www.2-waysms.com/">www.2-waysms.com</a> account</div><div>&nbsp;</div><div>*/</div><div>?&gt;</div><div><br></div><div>&lt;html&gt;</div>
<div>&lt;head&gt;</div><div>&lt;meta name="robots" content="index"&gt;</div><div>&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;</div><div>&lt;title&gt;Sistema de Envio de SMS com Chan_dongle&lt;/title&gt;</div>
<div>&lt;style type="text/css"&gt;</div><div>body{</div><div><span class="" style="white-space:pre">        </span>font-family:"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;&nbsp;</div>
<div><span class="" style="white-space:pre">        </span>font-size:12px;</div><div>}</div><div>p, h1, form, button{border:0; margin:0; padding:0;}</div><div>.spacer{clear:both; height:1px;}</div><div>/* ----------- My Form ----------- */</div>
<div>.myform{</div><div><span class="" style="white-space:pre">        </span>margin:0 auto;</div><div><span class="" style="white-space:pre">        </span>width:340px;</div><div><span class="" style="white-space:pre">        </span>padding:14px;</div>
<div>}</div><div>/* ----------- stylized ----------- */</div><div><span class="" style="white-space:pre">        </span>#stylized{</div><div><span class="" style="white-space:pre">                </span>border:solid 2px #b7ddf2;</div><div><span class="" style="white-space:pre">                </span>background:#ebf4fb;</div>
<div><span class="" style="white-space:pre">        </span>}</div><div><span class="" style="white-space:pre">        </span>#stylized h1 {</div><div><span class="" style="white-space:pre">                </span>font-size:14px;</div><div><span class="" style="white-space:pre">                </span>font-weight:bold;</div>
<div><span class="" style="white-space:pre">                </span>margin-bottom:8px;</div><div><span class="" style="white-space:pre">        </span>}</div><div><span class="" style="white-space:pre">        </span>#stylized p{</div><div><span class="" style="white-space:pre">                </span>font-size:11px;</div>
<div><span class="" style="white-space:pre">                </span>color:#666666;</div><div><span class="" style="white-space:pre">                </span>margin-bottom:20px;</div><div><span class="" style="white-space:pre">                </span>border-bottom:solid 1px #b7ddf2;</div>
<div><span class="" style="white-space:pre">                </span>padding-bottom:10px;</div><div><span class="" style="white-space:pre">        </span></div><div>}</div><div><span class="" style="white-space:pre">        </span>&lt;/style&gt;&nbsp;</div>
<div><span class="" style="white-space:pre">        </span></div><div><span class="" style="white-space:pre">        </span>&lt;script type="text/javascript"&gt;</div><div><span class="" style="white-space:pre">        </span></div>
<div>//Edit the counter/limiter value as your wish</div><div>var count = "160"; &nbsp; //Example: var count = "175";</div><div>function limiter(){</div><div>var tex = document.myform.text.value;</div><div>var len = tex.length;</div>
<div>if(len &gt; count){</div><div>&nbsp; &nbsp; &nbsp; &nbsp; tex = tex.substring(0,count);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; document.myform.text.value =tex;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; return false;</div><div>}</div><div>document.myform.limit.value = count-len;</div>
<div>}</div><div><br></div><div>// +,- delete</div><div>var r={'special':/[\W]/g}</div><div>function valid(o,w)</div><div>{</div><div>&nbsp; o.value = o.value.replace(r[w],'');</div><div>}</div><div><br></div><div>
// phone number checker</div><div>function isNumeric()</div><div>{</div><div>&nbsp; var elem=document.myform.to.value;</div><div>&nbsp; var nalt=document.getElementById('phno1');</div><div>&nbsp;if(elem!="")</div><div>
&nbsp;{</div><div>&nbsp; &nbsp; var numericExpression = /^[0-9]+$/;</div><div><span class="" style="white-space:pre">        </span> &nbsp;if(elem.match(numericExpression))</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nalt.innerHTML="";</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return true;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; else{</div><div><span class="" style="white-space:pre">                </span></div><div>&nbsp; &nbsp; nalt.innerHTML="&lt;font size=1 &gt; Numbers Only&lt;/font&gt;";</div><div><span class="" style="white-space:pre">                </span> &nbsp;document.myform.to.focus();</div>
<div><span class="" style="white-space:pre">        </span> <span class="" style="white-space:pre">        </span> &nbsp;document.myform.to.value="";</div><div>&nbsp; &nbsp; &nbsp; &nbsp;return false;</div><div><span class="" style="white-space:pre">        </span> &nbsp;}</div>
<div>&nbsp; }</div><div>&nbsp; else if(elem.length==0) &nbsp;{</div><div>&nbsp; &nbsp; nalt.innerHTML="&lt;font size=1 &gt; Ex. 6599...&lt;/font&gt;";</div><div>&nbsp; &nbsp; &nbsp;document.myform.to.focus();;</div><div>&nbsp; &nbsp;return false;</div><div>&nbsp; &nbsp; }</div>
<div>}</div><div>&lt;/script&gt;&nbsp;</div><div><span class="" style="white-space:pre">        </span></div><div>&lt;/head&gt;</div><div>&lt;body&gt;</div><div>&lt;?</div><div>&nbsp;</div><div>$from = "********"; // Change ********, and put your SMS Number in <a href="http://www.2-waysms.com/">www.2-waysms.com</a> account</div>
<div>$token = "********"; // Change ********, and put your token code in <a href="http://www.2-waysms.com/">www.2-waysms.com</a> account</div><div><br></div><div>&nbsp;</div><div>$option = $_REQUEST["option"];</div>
<div>$text = $_REQUEST["text"];</div><div>$to = $_REQUEST["to"];</div><div>$senderid = $_REQUEST["senderid"];</div><div><br></div><div><br></div><div><span class="" style="white-space:pre">        </span>switch ($option) {</div>
<div><span class="" style="white-space:pre">        </span></div><div><br></div><div><span class="" style="white-space:pre">        </span>case sendsms:</div><div><span class="" style="white-space:pre">                </span>if ($text == "") { echo&nbsp;</div>
<div><span class="" style="white-space:pre">        </span>"&lt;center&gt;&lt;br&gt;Erro!&lt;br&gt;&lt;b&gt;Digite um texto para mensagem&lt;b&gt;&lt;br&gt;&lt;a href=\"javascript:history.back(-1)\"&gt;&lt;b&gt;Voltar&lt;b&gt;&lt;/a&gt;&lt;br&gt;&lt;/center&gt;";&nbsp;</div>
<div>die; } else { }</div><div><span class="" style="white-space:pre">                </span></div><div><span class="" style="white-space:pre">                </span>if ($to == "") { echo "&lt;center&gt;&lt;br&gt;Error!&lt;br&gt;&lt;b&gt;Number not entered&lt;b&gt;&lt;br&gt;&lt;a href=\"javascript:history.back(-1)\"&gt;&lt;b&gt;Go Back&lt;b&gt;&lt;/a&gt;&lt;br&gt;&lt;/center&gt;";</div>
<div>&nbsp;die; } else { }</div><div>&nbsp;</div><div><span class="" style="white-space:pre">                </span>if ($senderid == "") { echo "&lt;center&gt;&lt;br&gt;Error!&lt;br&gt;&lt;b&gt;From not entered&lt;b&gt;&lt;br&gt;&lt;a href=\"javascript:history.back(-1)\"&gt;&lt;b&gt;Go Back&lt;b&gt;&lt;/a&gt;&lt;br&gt;&lt;/center&gt;";</div>
<div>die; } else { }</div><div><br></div><div><span class="" style="white-space:pre">                </span>$url = "<a href="http://www.2-waysms.com/my/api/sms.php">http://www.2-waysms.com/my/api/sms.php</a>";</div><div><br></div>
<div><span class="" style="white-space:pre">                </span>$postfields = array ("from" =&gt; "$from",</div><div>&nbsp; &nbsp; &nbsp; &nbsp; "token" =&gt; "$token",</div><div>&nbsp; &nbsp; &nbsp; &nbsp; "text" =&gt; "$text",</div>
<div><span class="" style="white-space:pre">                </span>"to" =&gt; "$to",</div><div><span class="" style="white-space:pre">                </span>"senderid" =&gt; "$senderid");</div><div><span class="" style="white-space:pre">                </span></div>
<div><span class="" style="white-space:pre">                </span>if (!$curld = curl_init()) {</div><div><span class="" style="white-space:pre">                </span>echo "Could not initialize cURL session.";</div><div><span class="" style="white-space:pre">                </span>exit;</div>
<div><span class="" style="white-space:pre">                </span>}</div><div><span class="" style="white-space:pre">                </span>curl_setopt($curld, CURLOPT_POST, true);</div><div><span class="" style="white-space:pre">                </span>curl_setopt($curld, CURLOPT_POSTFIELDS, $postfields);</div>
<div><span class="" style="white-space:pre">                </span>curl_setopt($curld, CURLOPT_URL, $url);</div><div><span class="" style="white-space:pre">                </span>curl_setopt($curld, CURLOPT_RETURNTRANSFER, true);</div><div><span class="" style="white-space:pre">                </span>$output = curl_exec($curld);</div>
<div><span class="" style="white-space:pre">                </span>curl_close ($curld);</div><div><span class="" style="white-space:pre">                </span></div><div><span class="" style="white-space:pre">                </span>$out = explode('|',$output);</div>
<div><span class="" style="white-space:pre">                </span></div><div>echo "&lt;center&gt;Message Status: Sua mensagem foi enviado com sucesso para $to $out[1]&lt;br&gt;&lt;a href=\"smser.php\"&gt;&lt;b&gt;Enviar nova mensagem?&lt;/b&gt;&lt;/a&gt;&lt;/center&gt;";&nbsp;</div>
<div><br></div><div><span class="" style="white-space:pre">        </span>break;</div><div><br></div><div><span class="" style="white-space:pre">        </span>default:</div><div><span class="" style="white-space:pre">                </span></div><div>
<span class="" style="white-space:pre">        </span>echo</div><div><span class="" style="white-space:pre">        </span></div><div><span class="" style="white-space:pre">        </span> "&lt;div id=\"stylized\" class=\"myform\"&gt;"</div>
<div><span class="" style="white-space:pre">        </span> &nbsp; ."&lt;form name=\"myform\" method=post action=\"$PHP_SELF?option=sendsms\"&gt;"</div><div><span class="" style="white-space:pre">        </span> &nbsp; ."&lt;table border=\"0\"&gt;"</div>
<div><span class="" style="white-space:pre">        </span> &nbsp; ."&lt;tr&gt;"</div><div><span class="" style="white-space:pre">        </span> &nbsp; ."&lt;center&gt;&lt;h1&gt;Envio de SMS com Chan_Dongle&lt;/h1&gt;&lt;/center&gt;"</div>
<div><span class="" style="white-space:pre">                </span> ."&lt;td&gt;Remetente&lt;/td&gt;"</div><div><span class="" style="white-space:pre">                </span> ."&lt;td&gt;&lt;input type=\"text\" name=\"senderid\" onkeyup=\"valid(this,'special')\" onblur=\"valid(this,'special')\"&gt;&lt;/td&gt;"</div>
<div><span class="" style="white-space:pre">        </span> &nbsp; ."&lt;/tr&gt;"</div><div><span class="" style="white-space:pre">        </span> &nbsp; ."&lt;tr&gt;"</div><div><span class="" style="white-space:pre">                </span> ."&lt;td&gt;Destinatario&lt;/td&gt;"</div>
<div><span class="" style="white-space:pre">                </span> ."&lt;td&gt;&lt;input type=\"text\" name=\"to\" id=\"to\" onKeyup=\"isNumeric()\"&gt;&lt;span id=phno1&gt;&lt;/span&gt;&lt;/td&gt;"</div>
<div><span class="" style="white-space:pre">        </span> &nbsp; ."&lt;/tr&gt;"</div><div><span class="" style="white-space:pre">        </span> &nbsp; ."&lt;tr&gt;"</div><div><span class="" style="white-space:pre">                </span> ."&lt;td&gt;Mensagem&lt;/td&gt;"</div>
<div><span class="" style="white-space:pre">                </span> ."&lt;td&gt;&lt;textarea name=text wrap=physical rows=4 cols=25 onkeyup=limiter()&gt;&lt;/textarea&gt;&lt;/td&gt;&lt;br&gt;"</div><div>&nbsp; &nbsp; &nbsp;."&lt;/tr&gt;"</div>
<div><span class="" style="white-space:pre">        </span> &nbsp; ."&lt;tr&gt;"</div><div><span class="" style="white-space:pre">        </span> &nbsp; ."&lt;td&gt;&lt;/td&gt;"</div><div>&nbsp; &nbsp; &nbsp; ."&lt;td&gt;Caracter: &lt;script type=\"text/javascript\"&gt;"</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp;."document.write(\"&lt;input type=text name=limit size=4 readonly value=\"+count+\"&gt;\");"</div><div>&nbsp; &nbsp; &nbsp; &nbsp;."&lt;/script&gt;&lt;br&gt;&lt;/td&gt;"</div><div><span class="" style="white-space:pre">        </span> &nbsp; ."&lt;/tr&gt;"</div>
<div><span class="" style="white-space:pre">        </span> &nbsp; ."&lt;tr&gt;"</div><div><span class="" style="white-space:pre">                </span> ."&lt;td&gt;&amp;nbsp;&lt;/td&gt;"</div><div><span class="" style="white-space:pre">                </span> ."&lt;td&gt;&lt;input type=submit name=submit value=Enviar&gt;"</div>
<div><span class="" style="white-space:pre">                </span> ."&lt;div class=\"spacer\"&gt;&lt;/div&gt;&lt;/td&gt;"</div><div><span class="" style="white-space:pre">        </span> &nbsp; ."&lt;/tr&gt;"</div><div>
<span class="" style="white-space:pre">        </span> &nbsp; ."&lt;/table&gt;"</div><div><span class="" style="white-space:pre">        </span> &nbsp; ."&lt;/form&gt;"</div><div><span class="" style="white-space:pre">        </span>."&lt;/div&gt;&lt;br&gt;";</div>
<div><span class="" style="white-space:pre">        </span>}</div><div><span class="" style="white-space:pre">        </span></div><div>?&gt;</div><div>&lt;/center&gt;</div><div>&lt;/body&gt;</div><div>&lt;/html&gt;</div></div><div><br>
</div><div><br></div><div><br clear="all"><div><br></div>-- <br><div dir="ltr"><p><span style="font-size:9pt;font-family:Verdana,sans-serif;color:rgb(74,85,113);background-color:rgb(245,255,250)">==================================</span><span style="font-size:9pt;font-family:Verdana,sans-serif;color:rgb(74,85,113)"><br>

<span style="background-color:rgb(245,255,250)"><b>INNOVA INFORMÁTICA
LTDA<br><br></b></span></span><span style="background-color:rgb(245,255,250);color:rgb(74,85,113);font-size:9pt"><font face="Verdana, sans-serif">LEOMAR SOARES DE ALMEIDA<b><br></b></font></span><span style="font-family:Verdana,sans-serif;background-color:rgb(245,255,250);color:rgb(74,85,113);font-size:9pt">Fixo: &nbsp;(65)
3357-3357<br></span><span style="font-family:Verdana,sans-serif;background-color:rgb(245,255,250);color:rgb(74,85,113);font-size:9pt">Vivo. &nbsp;(65) 9676-0062<br></span><span style="font-size:9pt;font-family:Verdana,sans-serif;color:rgb(74,85,113);background-color:rgb(245,255,250)">E-mail:&nbsp;</span><a href="mailto:leomarsa@gmail.com" target="_blank">comercial@innovainformatica.net</a>&nbsp;<br>
<span style="font-size:9pt;color:rgb(74,85,113)"><span style="background-color:rgb(245,255,250)"><font face="Verdana, sans-serif">E-mail: <a href="mailto:leomarsa@gmail.com" target="_blank">leomarsa@gmail.com</a><br></font></span></span><span style="font-size:9pt;color:rgb(74,85,113)"><span style="background-color:rgb(245,255,250)"><font face="Verdana, sans-serif">Linkedin:&nbsp;</font></span></span><font color="#4a5571" face="Verdana, sans-serif"><a href="http://lnkd.in/YMwxrW" target="_blank">http://lnkd.in/YMwxrW</a><br>
</font><span style="font-size:9pt;color:rgb(74,85,113)"><span style="background-color:rgb(245,255,250)"><font face="Verdana, sans-serif">Endereço:&nbsp;</font></span></span><font color="#4a5571" face="Verdana, sans-serif"><span style="font-size:12px"><a href="http://goo.gl/maps/2YfjW" target="_blank">http://goo.gl/maps/2YfjW</a></span></font></p><p><font color="#4a5571" face="Verdana, sans-serif"><br></font></p><p><br></p></div>
</div></div><div><br class="webkit-block-placeholder"></div>

-- <br>
&nbsp;<br>
--- <br>
Você está recebendo esta mensagem porque se inscreveu no grupo "ElastixBrasil" dos Grupos do Google.<br>
Para cancelar a inscrição neste grupo e parar de receber seus e-mails, envie um e-mail para <a href="mailto:elastixbrasil+unsubscribe@googlegroups.com">elastixbrasil+unsubscribe@googlegroups.com</a>.<br>
Para postar neste grupo, envie um e-mail para <a href="mailto:elastixbrasil@googlegroups.com">elastixbrasil@googlegroups.com</a>.<br>
Visite este grupo em <a href="http://groups.google.com/group/elastixbrasil">http://groups.google.com/group/elastixbrasil</a>.<br>
Para obter mais opções, acesse <a href="https://groups.google.com/groups/opt_out">https://groups.google.com/groups/opt_out</a>.<br>
</blockquote></div><br></div></body></html>