Sendmms | Search |
NowSMS Support Forums ⬆ MMS & SMS Technical Discussions (unsupported) ⬆ Archive through June 02, 2011 ⬆ |
◄ ► |
Author | Message | |||
vie maulida New member Username: Vie Post Number: 7 Registered: 04-2011 |
hi .. I want to send mms via script you've provided .. these cuts. $ MmsMessage = MmsAddField ($ mmsMessage, "PhoneNumber", ""); $ MmsMessage = MmsAddField ($ mmsMessage, "MMSFrom", "sender@domain.com"); $ MmsMessage = MmsAddField ($ mmsMessage, "MMSSubject", "Subject of Message"); what number in the content PhoneNumber? here assumed everyone could do the sms to be sent mms from the server. I did not configure sms & mms user. | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 3194 Registered: 08-2008 |
Hi, I might not understand your question, but the PhoneNumber parameter is the message recipient. The text at the start of the Java class provides a good basic explanation of how it is used. From http://www.nowsms.com/download/sendmms.java.txt : // The sendmms class can be used to send an MMS message via NowSMS. // // This class supports all of the MMS related parameters for NowSMS which are described at the // following link: // // http://blog.nowsms.com/2008/11/nowsms-php-example-send-mms-message.html // // Begin by creating a new sendmms object, specifying the address of the NowSMS server, and a valid username and password // for a user account ("SMS Users") on the NowSMS Server. // // sendmms mms = new sendmms ("http://127.0.0.1:8800/", "test", "test"); // // The addparameter method is used to build the MMS message object. // // Start by specifying a recipient (this can be a comma delimited list of recipients): // // mms.addparameter ("PhoneNumber", "+9999999999"); // // Next, add any desired MMS header parameters, such as the message subject, or an optional text part of the message: // // mms.addparameter ("MMSSubject", "This a a test message"); // mms.addparameter ("MMSText", "test message"); // Optional // // Next, add the file objects for the MMS content. // // mms.addparameter ("MMSFile", new File("f:\temp\test.jpg")); // mms.addparameter ("MMSFile", new File("f:\temp\test2.jpg")); // // // The send method submits the MMS message to NowSMS. // // mms.send (); |