# SMPP

[SMPP](https://smpp.org/) is the industry standard for sending and receiving SMS. Please contact our customer service to enable this feature.

## Get SMPP Account

Please contact customer service to create your own SMPP account.

## Using SMPP

### Connection

Please connect to the following server:

| Server Address  | Server Port | SSL Server Port |
| --------------- | ----------- | --------------- |
| smpp.ycloud.com | 30002       | 30012           |

Contact us to retrieve our public certificate.

###

### Binding

To send a bind request, please contact us to retrieve your SMPP system ID and password.

| Status | Description                         |
| ------ | ----------------------------------- |
| 0      | Success                             |
| 3      | Invalid SMPP system ID and password |
| 5      | Exceeds connection limit            |

###

### Submitting Messages

| Status | Description              |
| ------ | ------------------------ |
| 0      | Success                  |
| 4      | Invalid phone number     |
| 6      | Exceeds connection limit |

### Delivery Reports

Below is an example of the "short\_message" parameter in the "deliver\_sm" PDU:

```javascript
id:11041301030001006668 sub:001 dlvrd:001 submit date:2111040501 done date:2111040501 stat:DELIVRD err:0 text:none
```

"Submit date" and "done date" are in UTC time.

When sending, 'err' is '0', other values are:

| Error Code | Description                                                          |
| ---------- | -------------------------------------------------------------------- |
| 3          | Insufficient balance                                                 |
| 4          | Use of sensitive words not allowed                                   |
| 10         | The phone number is blacklisted                                      |
| 18         | Invalid signature. Signatures are required for SMS in Mainland China |
| 65         | Rejected by us, usually for SMS in Mainland China                    |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://helpdocs.ycloud.com/help-center/integrations/channels/global-sms/sms-features/smpp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
