← Desenvolvimento

Script enviar sms!

Lida 52536 vezes

Offline

Bejinho 
Membro
Mensagens 438 Gostos 0
Troféus totais: 24
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts 50 Posts

Alguem arranja o Script para enviar sms!!!!???
Ou pelo menos dizer as bases para eu desenvolver...
Offline

helt 
Membro
Mensagens 111 Gostos 0
Troféus totais: 25
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts

Offline

Bejinho 
Membro
Mensagens 438 Gostos 0
Troféus totais: 24
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts 50 Posts

Dou o script a func a kem kiser...
Offline

Casteloes 
Membro
Mensagens 935 Gostos 0
Feedback +14

Troféus totais: 31
Trófeus: (Ver todos)
Search Linux User Mobile User Windows User Super Combination Combination Topic Starter Poll Voter Level 5 Level 4

Citação de: "Bejinho"
Dou o script a func a kem kiser...


Qual é o script que usas?
Ja agora se puderes enviar-me isso para dar uma vista de olhos.
Offline

Bejinho 
Membro
Mensagens 438 Gostos 0
Troféus totais: 24
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts 50 Posts

Tou ajustar ja passo para aqui, vou fazer um global!!!
Offline

Bejinho 
Membro
Mensagens 438 Gostos 0
Troféus totais: 24
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts 50 Posts

http://www.infonet.alojagratis.org/sms/

Já rola!!!É mais simples do que parece...
Offline

Casteloes 
Membro
Mensagens 935 Gostos 0
Feedback +14

Troféus totais: 31
Trófeus: (Ver todos)
Search Linux User Mobile User Windows User Super Combination Combination Topic Starter Poll Voter Level 5 Level 4

Citação de: "Bejinho"
http://www.infonet.alojagratis.org/sms/

Já rola!!!É mais simples do que parece...



E qual foi o codigo que usas-te?
Offline

asturmas 
Administrador
Mensagens 19734 Gostos 50
Feedback +2

Troféus totais: 39
Trófeus: (Ver todos)
Mobile User Windows User Super Combination Combination Topic Starter 100 Poll Votes 50 Poll Votes 10 Poll Votes Poll Voter Poll Starter

Deve ter sido o codigo que esta na pagina 1 dum post..
Offline

Bejinho 
Membro
Mensagens 438 Gostos 0
Troféus totais: 24
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts 50 Posts

Sim foi...Mas alterei e muito...
Offline

afcramalho 
Membro
Mensagens 1373 Gostos 2
Feedback +4

Troféus totais: 34
Trófeus: (Ver todos)
Level 6 Linux User Mobile User Apple User Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter

Alteras-tes? não se nota...
Já agora põe aqui o script alterado, gostava de ver.
Offline

Pure_Water 
Membro
Mensagens 515 Gostos 0
Troféus totais: 27
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 500 Posts

eu uso o script que puseram ai "embelezado":

Código: [Seleccione]
<?
$action = $_REQUEST[action];
$action = strip_tags($action);
?>

<html>
<head>
</head>
<?
if ($action == "sendsms")
{
$nome = $_POST['nome'];
$number = strip_tags($_POST['number']);
$msg = strip_tags($_POST['msg']);
$to = $number."@mobile.celloneusa.com";
$message = $msg . "\nAss: " . $nome . "";
$headers = "FROM: Mensagem:";
$subject = "";
mail("$to", "$subject", "$message", "$headers");
echo "<b>Mensagem enviada To</b>: ".$number." <b>Mensagem</b>: ".$msg." ...";
} else {
?>
<form method="POST" action="sms.php?action=sendsms">
<table align="center">
<tr>
<td style="font-family:Arial, Helvetica, sans-serif; font-size:14px;">
<b>Nome:</b>
<input type="text" name="nome" size="30" value="" tabindex="2">
</td>
</tr>
<tr>
<td style="font-family:Arial, Helvetica, sans-serif; font-size:14px;">
<b>Numero:</b> +
<input type="text" name="number" size="30" value="351" tabindex="2"> </p>
</td>
</tr>
<tr>
<td style="font-family:Arial, Helvetica, sans-serif; font-size:14px;">
<b>Mensagem:</b>
</td>
</tr>
<tr valign="top">
<td valign="top" align="center">
<textarea name="msg" cols="60" rows="10" tabindex="2">a tua mensagem (max 160 caracteres)</textarea>
</td>
</tr>
<tr>
<td align="center">
<input type="submit" value="Enviar SMS" name="send">
</td>
</tr>    
</table>
<?
}
?>
</p>
</form>


</body>
</html>
Offline

Bejinho 
Membro
Mensagens 438 Gostos 0
Troféus totais: 24
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts 50 Posts

LOLOL


Pega lá entao:

index.php

<html>
 <?php

 ?>
  <head>
  <title>Serviço Infonet - Enviar mensagens Grátis!</title>
  </head>
 <body>
 <p align="center">Enviar mensagens Grátis! </p>
 <form action="enviar.php" name="contacto" method="post">
    <font face="verdana, sans" size="2">
   <p align="center">
    Número:<br/><input type="text" name="numero" size="30" value="351"><br/>
    Mensagem:<br/><textarea name="msg" cols=40 rows=10></textarea><br/>
   <p align="center"><input type="submit" name="submit" value="Enviar SMS!">
  </p>
  </form>
 </body>
</html>

enviar.php

<?php
$email = "infonetgeral@gmail.com";
$numero = $_POST['numero'];
$msg = $_POST['msg'];
$to = $numero."@mobile.celloneusa.com";
$message = $msg." \n SMS Gratis - www.infonet.web.pt";
$headers = "From: infonetgeral@gmail.com \n";
$subject = "SMS";
mail("$to", "$subject", "$message", "$headers");
echo "<center><b>Mensagem enviada!</b><br><br><b>Para:</b> ".$numero." <br><b>Mensagem:</b> ".$msg." ...";
?>


Espero que gostes... :lol:
Offline

OFFICER 
Membro
Mensagens 2076 Gostos 0
Troféus totais: 29
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5 Level 4 Level 3 Level 2

Acabou por ficar quase igual :?

Modificar o script era modificares o código php e acrescentares funcionalidades por exemplo. Olha..umas validações não era mau pensado..
Offline

ddxtreme 
Membro
Mensagens 41 Gostos 0
Troféus totais: 20
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Level 4 Level 3 Level 2 Level 1 10 Posts First Post Karma

alguem m podia explikar o k s encontra mal neste script?
SMS Gratis
Offline

SSPT 
Membro
Mensagens 408 Gostos 0
Troféus totais: 26
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Poll Starter Level 5 Level 4 Level 3 Level 2 Level 1

Citação de: "ddxtreme"
alguem m podia explikar o k s encontra mal neste script?
SMS Gratis


Qual é o codigo?