Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass some value in $tags variable #95

Open
ashok64554 opened this issue Feb 27, 2020 · 1 comment
Open

pass some value in $tags variable #95

ashok64554 opened this issue Feb 27, 2020 · 1 comment

Comments

@ashok64554
Copy link

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
Copy link

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants