onlinecity / php-smpp

PHP 5 based SMPP client library
232 stars 160 forks source link

pass some value in $tags variable #95

Open ashok64554 opened 4 years ago

ashok64554 commented 4 years ago

please let me know how to pass values from $tag variable. actually i want to send sms promotional and transectional and i read some docs for that.

0x219C | Indicates whether or not the message is promotional. This TLV is used for IN MTs. Values are: If not supplied, and IN (India) is the destination address country, 1 is used as the default. Type: Byte Size (octets): 1 Value: One of the following: 0x00 - promotional 0x01 - not promotional

please let me know how to send promotional SMS and transactional SMS.

Jagdish-J-P commented 3 years ago

You can use TAGs for this.

$tags = array( new SmppTag(0x1400, $PEID), new SmppTag(0x1401, $TEMPLATE_ID), new SmppTag(0x1402, $TELEMARKETER_ID) );

$smpp->sendSMS($from,$to,$encodedMessage,$tags);