MessageID

MessageID SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through November 14, 2013 » MessageID « Previous || Next »
Author Message
vagner crescencio
New member
Username: Vagner

Post Number: 1
Registered: 08-2013
Posted on Wednesday, August 21, 2013 - 10:20 pm:   

Good evening, I'm saving the 'MessageID' in mysql:


<?php
$x = SendSMS($ip_server, 8800, "", "", $fone, $msg);
mysql_query("INSERT INTO sms (messageID) VALUES ('$x')");
?>

But the record looks like this:

HTTP/1.0 200 OK
Connection: close
Content-Type: text/html
Expires: Tue, 01 Jan 1980 1:00:00 GMT
Cache-Control: no-cache
Content-Length: 315

<HTML>
<HEAD><TITLE>Message Submitted</TITLE></HEAD>
<BODY bgcolor=#cce8ff>
<p>
Message Submitted
<p>
<a href="javascript:history.back()">Continuar</a>
<p>
<pre><small>
MessageID=5216D4C0.req, Recipient=+000000000000
</small></pre>
<p>
</BODY>
</HTML>

how to get only the 'messageID'? Thank you.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 4602
Registered: 08-2008
Posted on Wednesday, August 21, 2013 - 11:34 pm:   

Hi Vagner,

If you are working in PHP, there is an example that parses this information in the following thread:
http://support.nowsms.com/discus/messages/1/24868.html

--
Des
NowSMS Support
vagner crescencio
New member
Username: Vagner

Post Number: 2
Registered: 08-2013
Posted on Wednesday, August 21, 2013 - 11:41 pm:   

Ok I used the function 'strpos ();'. Now as I keep in the bank if the 'sms' has been received? I use the '2-way '? Thank you.

Login Login / Register Logout Logout Search Last 30 Days Topics Topics