Autor Beitrag
Muratxiv
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 27



BeitragVerfasst: Fr 08.09.06 18:48 
Hallo,

ist es möglich(wenn ja, wie?) mit Delphi Sms über messagemonster.de zu senden? Ich möchte, dass es nur möglich ist sms an eine Nummer (meine) zu senden. Laut den AGB's ist es nicht erlaubt, worauf ich den Support angeschrieben habe, welcher mir erlaubte, falls ich es schaffe, dieses Programm nutzen zu dürfen, solange es mit dem nur möglich ist an meine nr. zusenden. Also, wie kann ich dies realisieren?
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Fr 08.09.06 19:23 
Kommt drauf an. Wenn das ein Formular ist, dann kannst du mit den Indy-Komponenten und IdHTTP die entsprechden Daten an die Seite senden. Könntest du mal den Quelltext der Seite posten, in der man Nummer und Text eingibt?

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
Muratxiv Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 27



BeitragVerfasst: Sa 09.09.06 11:07 
ja, aber das ist glaub ich immer ein anderer Link, der mit Php geneiert wird.

ausblenden volle Höhe Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
<div style="text-align: left;">  
       <div align="center">
        <table class="g_systemInfo">
          <tbody><tr>
            <td>Die SMS wurde erfolgreich über die SMS-Flatrate versendet! Bisher in diesem Monat versendet: 8 SMS </td>
          </tr>
        </tbody></table>
      </div>
      <br>
<h2 class="g_pageHeading">SMS versenden</h2>    
          <p>
            Hier kannst Du Deine SMS verschicken! 
            Einfach die Handynummer eingeben, Nachricht schreiben und SMS absenden. Die SMS wird dann umgehend zugestellt.
            messagemonster wünscht Dir viel Spaß!   
          </p>  
  <p class="g_note" style="margin: 10px 0pt;">
    
        <a href="/com/cfavatar/minos/index.cfm?sENC=OzpCRj48Ik1QMyVKVyAgWUNPPz4hRk5VK1cjUlczVTkjJTU9Jwo%3D&sTarget=SEND_INTERNALMESSAGE"> Interne Nachricht schreiben</a> |    
        <a href="/com/cfavatar/minos/index.cfm?sENC=OzpCRj48Ik1QMyVKVyAgWUNPPz4hRk5VK1cjUlczVTkjJTU9Jwo%3D&sTarget=SEND_SMS"> SMS schreiben</a> |    
        <a href="/com/cfavatar/minos/index.cfm?sENC=OzpCRj48Ik1QMyVKVyAgWUNPPz4hRk5VK1cjUlczVTkjJTU9Jwo%3D&sTarget=SEND_EMAIL"> E-Mail schreiben</a> |
    <a href="/com/cfavatar/minos/index.cfm?sENC=OzpCRj48Ik1QMyVKVyAgWUNPPz4hRk5VK1cjUlczVTkjJTU9Jwo%3D&sTarget=BUDDYLIST"> Meine Freunde</a> |
    <a href="/com/cfavatar/minos/index.cfm?sENC=OzpCRj48Ik1QMyVKVyAgWUNPPz4hRk5VK1cjUlczVTkjJTU9Jwo%3D&sTarget=MESSAGES"> Erhaltene Nachrichten</a> |
    <a href="/com/cfavatar/minos/index.cfm?sENC=OzpCRj48Ik1QMyVKVyAgWUNPPz4hRk5VK1cjUlczVTkjJTU9Jwo%3D&sTarget=SENT_MESSAGES"> Gesendete Nachrichten</a> |
    <a href="/com/cfavatar/minos/index.cfm?sENC=OzpCRj48Ik1QMyVKVyAgWUNPPz4hRk5VK1cjUlczVTkjJTU9Jwo%3D&sTarget=SETTING"> Abonnierte Channels</a>
   </p>    
    <script language="javascript" type="text/javascript">
    <!--
    function toggleRecipientFields()
    {
      var recipientTypeUser   = document.smsForm.sUser;
      var recipientTypeNumber = document.smsForm.sNumber;
      var recipientUser       = document.getElementById('sRecipientUser');
      var recipientNumber     = document.getElementById('sRecipientNumber');
      if(recipientTypeUser.checked == true)
      {
        recipientUser.style.display   = 'block';
        recipientNumber.style.display = 'none';
      }
      else if(recipientTypeNumber.checked == true)
      {
        recipientUser.style.display   = 'none';
        recipientNumber.style.display = 'block';
      }
    }     
    // -->
    </script>    
    <div style="margin-bottom: 10px;">      
    <table class="g_table" cellspacing="0">             
      <tbody><tr>
        <td class="g_tableHeader"> Letzte Nachrichten</td>
      </tr>                      
          <tr class="g_tableRowon">
            <td valign="top">      
              Nachricht1 <p>                            
            </p></td>           
          </tr>                    
          <tr class="g_tableRowoff">
            <td valign="top">             
               Nachricht2<p>                            
            </p></td>           
          </tr>                    
          <tr class="g_tableRowon">
            <td valign="top">             
              Hi,<br>Nachricht3<p>                            
            </p></td>           
          </tr>      
    </tbody></table>  
    </div>    
    <form name="smsForm" action="/com/cfavatar/minos/sms/smsSend.cfm?sENC=OzpCRj48Ik1QMyVKVyAgWUNPPz4hRk5VK1cjUlczVTkjJTU9Jwo%3D" method="post">
      <input name="sMessageUUID" value="91C0CFCA-2BFC-1FEB-950081588F145673" type="hidden">
      <input name="replyToMsgID" value="0" type="hidden">
      <div align="center">
        <table class="g_form" cellspacing="0">
          <tbody><tr>
            <td colspan="3" class="g_tableHeader"> </td>
          </tr>
          <tr>
            <td align="center">
              <table>
                <colgroup>
                  <col style="width: 100px;">
                  <col>
                </colgroup>
                <tbody><tr>
                  <td class="g_formLabel"> Empfänger:</td>
                  <td>
                    <input id="sUser" name="recipientType" onclick="toggleRecipientFields();" type="radio">
                    <label for="sUser" class="g_formField" style="border: medium none ; background: transparent none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"> Benutzer aus der Freundesliste</label>
                    <input id="sNumber" name="recipientType" checked="checked" onclick="toggleRecipientFields();" type="radio">
                    <label for="sNumber" class="g_formField" style="border: medium none ; background: transparent none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"> Handynummer</label>
                  </td>
                </tr>
                <tr>
                  <td class="g_formLabel"> </td>
                  <td>
                    <div id="sRecipientUser" style="display: none;">
                      <select name="recipientUserID" class="g_formField">
                        <option value="0" selected="selected">---------</option>                        
                      </select>
                    </div>
                    <div id="sRecipientNumber">     
        <script type="text/javascript" language="javascript">
        <!--
          function _addSelectEntry(sObject, sText, sValue)
          {
            var oSelectbox = document.getElementsByName(sObject)[0];
            var iPosition  = null;
            var oNewEntry = new Option(sText, sValue);            
            oSelectbox.options[oSelectbox.length] = oNewEntry;
          }
          function _selectAChange()
          {
            var sSelectAValue       = document.getElementsByName("sDialingCode")[0].value;
            var oSelectB            = document.getElementsByName("sAreaCode")[0];
            var oSelectA            = document.getElementsByName("sDialingCode")[0];
            var aSelectA            = new Array();
            var aSelectB            = new Array();
            var iSelectedA          = 0;
            var iSelectedB          = 0;
            aSelectA[0]             = new Array();
            aSelectA[1]             = new Array();
            aSelectB[0]             = new Array();
            aSelectB[1]             = new Array();
            aSelectB[2]             = new Array();            
              aSelectA[0][0]  = "0";
              aSelectA[1][0]  = "---------";           
              aSelectA[0][1]  = "+49";
              aSelectA[1][1]  = "Deutschland";           
              aSelectB[0][0] = "";
              aSelectB[1][0] = "0";
              aSelectB[2][0] = "---------";           
              aSelectB[0][1] = "+49";
              aSelectB[1][1] = "151";
              aSelectB[2][1] = "0151";           
              aSelectB[0][2] = "+49";
              aSelectB[1][2] = "152";
              aSelectB[2][2] = "0152";           
              aSelectB[0][3] = "+49";
              aSelectB[1][3] = "155";
              aSelectB[2][3] = "0155";            
              aSelectB[0][4] = "+49";
              aSelectB[1][4] = "159";
              aSelectB[2][4] = "0159";            
              aSelectB[0][5] = "+49";
              aSelectB[1][5] = "160";
              aSelectB[2][5] = "0160";           
              aSelectB[0][6] = "+49";
              aSelectB[1][6] = "162";
              aSelectB[2][6] = "0162";           
              aSelectB[0][7] = "+49";
              aSelectB[1][7] = "163";
              aSelectB[2][7] = "0163";         
              aSelectB[0][8] = "+49";
              aSelectB[1][8] = "170";
              aSelectB[2][8] = "0170";                          
              aSelectB[0][9] = "+49";
              aSelectB[1][9] = "171";
              aSelectB[2][9] = "0171";           
              aSelectB[0][10] = "+49";
              aSelectB[1][10] = "172";
              aSelectB[2][10] = "0172";            
              aSelectB[0][11] = "+49";
              aSelectB[1][11] = "173";
              aSelectB[2][11] = "0173";           
              aSelectB[0][12] = "+49";
              aSelectB[1][12] = "174";
              aSelectB[2][12] = "0174";           
              aSelectB[0][13] = "+49";
              aSelectB[1][13] = "175";
              aSelectB[2][13] = "0175";            
              aSelectB[0][14] = "+49";
              aSelectB[1][14] = "176";
              aSelectB[2][14] = "0176";           
              aSelectB[0][15] = "+49";
              aSelectB[1][15] = "177";
              aSelectB[2][15] = "0177";            
              aSelectB[0][16] = "+49";
              aSelectB[1][16] = "178";
              aSelectB[2][16] = "0178";            
              aSelectB[0][17] = "+49";
              aSelectB[1][17] = "179";
              aSelectB[2][17] = "0179";
            oSelectB.length   = 0;
            _addSelectEntry("sAreaCode", "-----------", "");
            for(var i = 0; i < aSelectB[0].length; i++)
            {
              if(aSelectB[0][i] == sSelectAValue)
                _addSelectEntry("sAreaCode", aSelectB[2][i], aSelectB[1][i]);
            }
          }
          -->
        </script>                      
      <select name="sDialingCode" class="g_formField" onchange="_selectAChange();" style="">          
            <option value="0">---------</option>           
            <option value="+49" selected="selected">Deutschland</option>
      </select>                
      <select name="sAreaCode" class="g_formField" style="">  
      <option value="">-----------</option><option value="151">0151</option><option value="152">0152</option><option value="155">0155</option><option value="159">0159</option><option value="160">0160</option><option value="162">0162</option><option value="163">0163</option><option value="170">0170</option><option value="171">0171</option><option value="172">0172</option><option value="173">0173</option><option value="174">0174</option><option value="175">0175</option><option value="176">0176</option><option value="177">0177</option><option value="178">0178</option><option value="179">0179</option></select>
          <script type="text/javascript" language="javascript">
          <!--
          _selectAChange();
          -->
          </script>                     
      <input class="g_formField" name="sPhoneNr" value="" size="10" maxlength="10" type="text">    
                    </div>
                  </td>
                </tr>
                <tr>
                  <td class="g_formLabel" style="vertical-align: top;"> SMS Text:</td>
                  <td>  
  <script language="javascript" type="text/javascript">
  <!--
  var maxlength = 160;  
  function mBody_toggleRecipientFields()
  {
    var frm = document.smsForm;
    var recipientTypeUser   = frm.sUser;
    var recipientTypeNumber = frm.sNumber;
    var recipientUser       = document.getElementById('sRecipientUser');
    var recipientNumber     = document.getElementById('sRecipientNumber');  
    if(recipientTypeUser.checked == true)
    {
      recipientUser.style.display   = 'block';
      recipientNumber.style.display = 'none';
    }
    else if(recipientTypeNumber.checked == true)
    {
      recipientUser.style.display   = 'none';
      recipientNumber.style.display = 'block';
    }
  }       
  function mBody_escapeSMS(smsText)
  {
    var smsEscaped = "";
  
    for(i = 0; i < smsText.length; i++)
    {
      c = smsText.charAt(i);  
      if((c == '^' || c == '{' || c == '}' || c == '\\' || c == '['
      || c == '~' || c == ']' || c == '|' || c == '€') ||
      (c == '\n' && (navigator.appName == "Netscape")))
      {
        smsEscaped += String.fromCharCode(27) + c;
      }
      else
      {
        smsEscaped += c;
      }
    }
    return smsEscaped;
  }  
  function mBody_updateCharCount()
  {
    mBody_limitCharCount();    
    var frm = document.smsForm;
    var smsText    = frm.mBody.value;
    var smsEscaped = mBody_escapeSMS(smsText);
    var smsLength  = smsEscaped.length;
    var smsRemainingChars;
  
    smsRemainingChars = maxlength - smsLength;
  
    if(document.all)
    {
      document.all.mBody_charCount.innerText = smsRemainingChars;
    }
    else if(document.getElementById)
    {
      document.getElementById("mBody_charCount").firstChild.data = smsRemainingChars;
    }  
    return true;
  }
  function mBody_limitCharCount()
  {
    var frm = document.smsForm;
    var smsText    = frm.mBody.value;
    var smsEscaped = mBody_escapeSMS(smsText);
    if(smsEscaped.length > maxlength)
    {
      frm.mBody.value = smsText.substring(0, maxlength - (smsEscaped.length - smsText.length));
      return false;
    }
    else
    {
      return true;
    }
  }     
  // -->
  </script>
  <textarea name="mBody" class="g_formField" cols="52" rows="4" onfocus="mBody_updateCharCount();" onkeyup="mBody_updateCharCount();" onkeydown="mBody_updateCharCount();" onchange="mBody_updateCharCount();"></textarea><br>
  Restzeichen:
  <span id="mBody_charCount" style="border: medium none ; background: transparent none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">160</span>                              
  </td>
                </tr>
                <tr>
                  <td colspan="2" align="right">    
                    <input class="g_formButton" name="submit" value="SMS absenden" type="submit">
                  </td>
                </tr>
              </tbody></table>
            </td>
          </tr>
        </tbody></table>
      </div>
    </form> 
      </div>


Ist jetzt der ganze Code, wusste nicht, was genau du brauchst!