# Overview

Welcome to Local Mail API Documentation!

This documentation will guide you on how to seamlessly integrate Local Mail's web services into your applications. We provide a wide array of APIs, simplifying the process of integration and enabling you to generate ready-to-use code in your preferred programming language.

**Global Reach, Scalable Solutions**

Local Mail is designed to cater to users worldwide. Our infrastructure is built to handle high volumes and ensure reliable service no matter where your end users are located. We've tackled the challenges of scale with our configurable software that can manage a vast number of APIs, all under one roof.

**Flexible and Fair Pricing**

With Local Mail, there's no need for sign-ups or subscriptions. Our platform is open to all users, free of charge until out of beta. The only limitation is the rate limit of 100 requests per minute per IP address. If you require a higher rate limit, feel free to contact us at <support@localmail.io> to discuss potential options.

**Easy Integration and Security**

Our API is based on the REST standard specification, and we support JSON for data interchange. You don't need to set Accept and Content-Type headers, but you can do so if preferred. HTTP requests to the REST API are protected with a static apiKey for security and future roadmap to Dashboards and logs. Refer to our security documentation for more details on how LocalMail handles authentication.

**Our APIs**

LocalMail hosts hundreds of APIs across diverse categories like Verification Services, Lookup Services, Financial Services, and more. To start using them, simply find the API you're interested in, generate the code in your desired programming language, and integrate it into your application.

**Base URL**

Our base URL is [https://api.localmail.io](https://api.localmail.io/). We enforce Strict SSL for enhanced security.

If you have any questions or require assistance, please reach out to our support team at <support@localmail.io>. We're here to help you make the most of Local Mail's APIs.

<br>


# Common Error Codes

Local Mail uses standard HTTP status codes to indicate the success or failure of an API request.

Generally speaking, codes in the 2xx range indicate that a request was successfully processed and codes in the 4xx range indicate that there was an error that resulted from the information provided (e.g., authentication, no balance or a missing or wrong parameter).

In case of an error, the body of the response includes a JSON formatted response that tells you exactly what is wrong.

**`HTTP Status Codes for API`**

| HTTP Status Codes                   | Description                               |
| ----------------------------------- | ----------------------------------------- |
| 200 Found                           | We found the requested resource           |
| 201 Created                         | The resource is successfully created      |
| 204 No Content                      | The requested resources are empty         |
| 401 Unauthorized                    | The access key was incorrect              |
| 404 Not found                       | The resources cannot be found             |
| 405 Method Not Allowed              | The method is not allowed                 |
| 408 Request Timeout                 | The request is taking too long to respond |
| 422 Unprocessable Entity            | The resource couldn't be created          |
| 5xx Something went wrong on our end | Please try again                          |

**`API specific Error Reason/status`**

| Error Code | Description         |
| ---------- | ------------------- |
| 10         | Request not allowed |
| 8          | Missing params      |
| 15         | Invalid params      |
| 40         | Not found           |
| 50         | Bad request         |
| 60         | Not enough balance  |
| 75         | API not found       |
| 99         | Internal error      |
| 101        | Service unavailable |
| 105        | Duplicate entry     |
| 125        | Ambiguous lookup    |


# Localmail Insights - Lookup

Welcome to the streamlined world of Local Mail Insights. Our quick lookup services are designed for smart communication, offering essential data with minimal fuss.

###


# Email Lookup Service

Email Lookup API offers a comprehensive analysis of email addresses, providing details like domain information, deliverability status, and more.

### Features of Email Lookup:

1. **Email Verification**: Checks validity and existence of email addresses.
2. **Domain Insights**: Provides domain details, including MX records and SMTP providers.
3. **Deliverability Score**: Rates the likelihood of email delivery success.
4. **Mailbox Status**: Identifies full mailboxes and accept-all accounts.
5. **WHOIS Data**: Offers registrar and domain registration details.
6. **Typo Detection**: Suggests corrections for potential email typos.
7. **Performance Metrics**: Measures lookup speed and efficiency.
8. **Structured JSON Response**: Ensures easy data integration and parsing.

## insights into deliverability, domain information, and additional email characteristics to enhance communication strategies and data validation processes.

<mark style="color:green;">`POST`</mark> `https://api.localmail.io/v1/lookup/email`

#### Request Body

| Name                                    | Type   | Description                                                                                                                         |
| --------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------- |
| email<mark style="color:red;">\*</mark> | String | <p>Format: Must adhere to standard email address formatting, typically local-part\@domain. </p><p>Example: "<user@example.com>"</p> |

{% tabs %}
{% tab title="200: OK " %}

```
{
  "accept_all": "None",
  "did_you_mean": "False",
  "disposable": "False",
  "domain": "exampledomain.io",
  "duration": "2.36",
  "email": "example@exampledomain.io",
  "free": "False",
  "mailbox_full": "None",
  "mx_record": "example.mx.record.com",
  "no_reply": "False",
  "reason": "",
  "role": "False",
  "score": "73",
  "smtp_provider": "exampleprovider.com",
  "state": "Deliverable",
  "user": "example",
  "who_is": {
    "registrar": "Example Registrar",
    "updated_date": "YYYY-MM-DD HH:MM:SS",
    "creation_date": "YYYY-MM-DD HH:MM:SS",
    "expiration_date": "YYYY-MM-DD HH:MM:SS",
    "name_servers": [
      "ns1.example.com",
      "ns2.example.com"
    ],
    "dnssec": ""
  }
}
```

{% endtab %}
{% endtabs %}

### Response Format

The API returns a JSON object with the following fields:

* `accept_all`: Indicates if the domain accepts all emails.
* `did_you_mean`: Suggestion for typos in the email.
* `disposable`: Whether the email is from a disposable service.
* `domain`: Domain of the email.
* `duration`: Time taken for the lookup.
* `email`: Queried email address.
* `free`: If the email belongs to a free email provider.
* `mailbox_full`: Indicates if the mailbox is full.
* `mx_record`: The MX record of the domain.
* `no_reply`: Indicates if it is a no-reply email.
* `reason`: Additional details (if any).
* `role`: If the email is associated with a role account.
* `score`: Deliverability score of the email.
* `smtp_provider`: SMTP provider information.
* `state`: Email status (e.g., Deliverable).
* `user`: Local part of the email.
* `who_is`: WHOIS information for the domain, including registrar, update/creation/expiration dates, name servers, and DNSSEC info.

### Error Responses

* **400 Bad Request**: Invalid phone number format or missing data in the request.
* **401 Unauthorized**: Access token is missing or invalid.
* **404 Not Found**: Phone number not found in the database.
* **500 Internal Server Error**: Unexpected server error.


# Phone Number Lookup Service

The Phone Number Lookup API enables businesses to validate and obtain information about phone numbers.

### Features of phone number Lookup:

1. **Number Validation**: Confirms if the provided phone number is valid.
2. **Country Code Identification**: Determines the international country dialing code.
3. **National Number Format**: Provides the phone number in a national format.
4. **Carrier Information**: Identifies the carrier service associated with the phone number.
5. **Regional Identification**: Pinpoints the country or region of the phone number's registration.

## This service is essential for enterprises looking to verify user contact details, enhance customer data, and improve communication strategies.

<mark style="color:green;">`POST`</mark> `https://api.localmail.io/v1/lookup/phone-number`

#### Request Body

| Name                                            | Type   | Description                                                                                                                                                      |
| ----------------------------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| phone\_number<mark style="color:red;">\*</mark> | String | Format: Should be in E.164 formatting for international numbers, which includes a + followed by the country code and the national number. Example: "+1234567890" |

{% tabs %}
{% tab title="200: OK " %}

```
{
  "original_number": "+91XXXXXXXXXX",
  "country_code": 91,
  "national_number": "XXXXXXXXXX",
  "is_valid": true,
  "carrier": "Example Carrier",
  "region": "Example Country"
}
```

{% endtab %}
{% endtabs %}

### Response Format

The API responds with a JSON object providing detailed information about the queried phone number:

* `original_number`: The original phone number queried.
* `country_code`: International country dialing code.
* `national_number`: National format of the phone number.
* `is_valid`: Boolean indicating if the phone number is valid.
* `carrier`: Name of the phone carrier.
* `region`: Country or region where the phone number is registered.

### Error Responses

* **400 Bad Request**: Invalid phone number format or missing data in the request.
* **401 Unauthorized**: Access token is missing or invalid.
* **404 Not Found**: Phone number not found in the database.
* **500 Internal Server Error**: Unexpected server error.


# IP Lookup Service

IP lookup service provides detailed information about IP addresses, enhancing your business's security and data intelligence.

### Features of IP Lookup

* **Geolocation Details**: Discover the geographical location of any IP address.
* **Security Assessments**: Identify potential security threats linked to IP addresses.
* **Connection Insights**: Determine the type of connection (residential, business, mobile) an IP is associated with.

<mark style="color:green;">`POST`</mark> `https://api.localmail.io/v1/lookup/ip/`

The IP Lookup API provides detailed information about an IP address, including domain association, geographical location, and network information.

#### Request Body

| Name                                          | Type   | Description                                                                                                                   |
| --------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------------------------------- |
| ip\_address<mark style="color:red;">\*</mark> | String | Format: Must be a valid IPv4 or IPv6 address. Example: "192.168.1.1" (IPv4), "2001:0db8:85a3:0000:0000:8a2e:0370:7334" (IPv6) |

{% tabs %}
{% tab title="200: OK " %}

```
{
  "ip": "104.28.233.84",
  "domain": "exampledomain.com",
  "asn": "ASxxxxx",
  "asn_organization": "Example Organization",
  "country": "Example Country",
  "continent": "Example Continent",
  "reason": "",
  "name_official": "Official Country Name",
  "calling_codes": "+xx",
  "currencies": "XXX",
  "region": "Example Region",
  "sub_region": "Example Sub-Region",
  "capital": "Capital City",
  "languages": "Language1,Language2"
}
```

{% endtab %}

{% tab title="400: Bad Request " %}

```
{
  "error_code": 100,
  "message": "Invalid IP address format."
}
```

{% endtab %}
{% endtabs %}

### Response Format

Upon a successful request, the API will return a JSON object containing the following information:

* `ip`: IP address queried.
* `domain`: Associated domain name (if any).
* `asn`: Autonomous System Number.
* `asn_organization`: Organization associated with the ASN.
* `country`: Country where the IP is located.
* `continent`: Continent of the IP location.
* `reason`: Additional details or reasons (if applicable).
* `name_official`: Official name of the country.
* `calling_codes`: Country calling code(s).
* `currencies`: Currency code(s) used in the country.
* `region`: General region where the IP is located.
* `sub_region`: Specific sub-region of the IP location.
* `capital`: Capital city of the country.
* `languages`: Languages spoken in the region.

### Error Responses

* **400 Bad Request**: Invalid IP address format.
* **401 Unauthorized**: Access token is missing or invalid. (Only for premium users)
* **404 Not Found**: IP address not found in the database.
* **500 Internal Server Error**: Unexpected server error.


# Learn more about SMS

You can’t force the funnel, but you can engineer it.

If you are a marketer or a business owner, you’ve no doubt heard about the benefits of SMS marketing. This communication strategy, also called “text marketing,” is a favorite among marketers because of highly receptive audiences, unmatched open rates, and promotions that succeed because they’re delivered to customers and prospects on the mobile devices they carry with them all day.

Your business faces a challenge — cutting through the noise to convert and retain customers. Using the wrong tools or tactics to reach users can cost you time, money, and customer trust.

Customers pay attention to SMS. It’s up to you to make make the most of the medium and your message. SMS marketing gives you the power to do just that.

### **Your Text Marketing Jumpstart**

Texting boasts greater immediacy and attention than other digital marketing methods. The benefits of successful SMS and text marketing are undeniable:

* The [open rate for a SMS](https://www.entrepreneur.com/article/279237) is nearly 98%. Push notifications [pale in comparison](https://venturebeat.com/2016/09/29/tapjoy-unveils-7-surprising-facts-about-who-opens-push-notifications/), topping at 3.10%, likely due to the saturation of this tech-enabled App.
* Meanwhile, [Facebook posts](https://go.forrester.com/blogs/14-11-17-facebook_has_finally_killed_organic_reach_what_should_marketers_do_next/) get delivered to their targeted audience just 2% of the time.
* Response rates for push notifications, which require an App install, range from [7 to 48 minutes](https://www.leanplum.com/blog/analyze-1-5-billion-push-notifications/) as opposed to [only three seconds with an SMS message](https://www.entrepreneur.com/article/279237). (To understand the difference between Push Notifications and SMS Marketing)

As you create your digital marketing strategy, you’ll come to understand that no one marketing method is a silver bullet. But SMS stands out as one of the most reliable ways to reach your customers, especially when used in combination with voice, email, Facebook Messenger, and other channels.

### What is SMS?

Stands for short message service, is the standardized communications protocol for mobile devices. In other words, it is shorthand for a text message. People often use SMS and text message interchangeably.

### What is a shortcode?

A special 5- or 6-digit phone number designated for companies and organizations to send and receive SMS and MMS. Just like you would text with your friends from your own mobile number, companies can text back and forth with consumers from a short code.

### **SMS Marketing Starts With A Solid Foundation**

SMS has emerged as one of the best and most reliable ways for large and small organizations to connect with their audience in a more intimate, direct way. Its use is definitely on the rise and with good reason: when done correctly, it works. In fact, brands using SMS successfully [typically reach 95% of users](https://www.forbes.com/sites/cherylsnappconner/2013/11/12/fifty-essential-mobile-marketing-facts/#3ce9d0c07475), on both smartphones and non-smartphones. It all starts with the technology behind the message, so you’ll need a sophisticated SMS provider to support your mobile marketing programs.

Localmail offers a comprehensive suite of developer-friendly APIs including messaging, voice, and lookup services to help you build effective mobile applications within your ecosystem. Our communication solutions are built to support your marketing efforts by giving developers the ability to quickly and easily integrate call and text (and a whole lot more) directly into your mobile marketing suite. Whether it’s text messaging, push, email, recorded voice messages, Facebook Messenger, you want a marketing platform that can respond and evolve with the varying needs – and preferences of – your audience to have the right conversation at the right time, every time.

### Measure what works.

Smart marketers know how their campaigns are performing and can prove their ROI. That’s another great benefit to text marketing: if you have the right SMS solution, SMS marketing offers a direct, measurable, and trackable marketing channel. It allows you to easily determine which messages and promotions are working and which ones aren’t which can help you continually refine your text campaigns, and improve your marketing messages on all other media. Best of all, you can capture leads and all text-based responses and inquiries for sales follow-up.

### Need More Help?

If you need any further Help During your Integration or questions related to technical know-how, you can reach out to our support team at **<support@localmail.io>**


# SMS Character Limit

The character limit for a single SMS message is 160 characters. However, most modern phones and networks support concatenation; they segment and rebuild messages up to 1600 characters. Messages not using [GSM-7](https://docs.localmail.io/messaging/learn-more-about-sms/what-is-gsm-7-character-encoding) encoding are limited to 70 characters.

### SMS Message Length and Character Encoding

When you send a SMS message over 160 characters, the message will be split. Large messages are segmented into 153 character segments and sent individually, then rebuilt by the recipient's device. For example, a 161-character message will be sent as two messages, one with 153 characters and the second with 8 characters.

If you include [non-GSM characters](https://docs.localmail.io/messaging/learn-more-about-sms/what-is-gsm-7-character-encoding), such as Chinese script, in SMS messages, those messages have to be sent via [UCS-2](https://docs.localmail.io/messaging/learn-more-about-sms/what-is-ucs-2-character-encoding) encoding. **Messages containing any UCS-2 characters are limited to 70 characters** and will be concatenated into 67 character message segments, even if the messages contain fewer than 160 characters.

### What is the history behind SMS message length? <a href="#what-is-the-history-behind-sms-message-length" id="what-is-the-history-behind-sms-message-length"></a>

*SMS* is a standardized communication protocol that enables devices to exchange short text messages and was defined as part of the [1985 GSM protocol](https://en.wikipedia.org/wiki/GSM_03.38). Originally, it was designed to "fit in between" existing signalling protocols, which is why SMS length is limited to 160 seven-bit characters. It was subsequently codified into the [SMPP signalling protocol](https://en.wikipedia.org/wiki/Short_Message_Peer-to-Peer) that transmits SMS and is limited to precisely 140 bytes (or 1120 bits).

But things get tricky because GSM-7, the original charater set designed for SMS, only has the ability to denote 128 different characters in those 7 bits. So if you want to include more Latin or non-Latin scripts, you'll need to use UCS-2.

A common mistake is to inadvertently use a UCS-2 character, thinking it's GSM-7 character. GSM-7 isn't a supported character set in many text editors. The classic mistake is to use "curly quotes" not realizing that they're part of UCS-2 and not GSM7.

We recommend that you check any mass messages in [our Message Segment calculator](https://localmail.github.io/message-segment-calculator/) before you send them out. It will flag any UCS-2 characters to avoid you being double-charged for messages. If you use Local mail, you can see whether a message was encoded as UCS-2 or GSM7 by viewing an individual message in your sms logs.

### Need More Help?

If you need any further Help During your Integration or questions related to technical know-how, you can reach out to our support team at **<support@localmail.io>**<br>


# UCS-2

UCS-2 is a character encoding standard in which characters are represented by a fixed-length 16 bits (2 bytes).  It is used as a fallback on many GSM networks when a message cannot be encoded using [GSM-7](https://docs.localmail.io/messaging/learn-more-about-sms/what-is-gsm-7-character-encoding) or when a language requires more than 128 characters to be rendered.

### **The Basics of UCS-2 Encoding and SMS Messages**

UCS-2 and the other UCS standards are defined by the International Organization for Standardization (ISO) in [ISO 10646](http://standards.iso.org/ittf/PubliclyAvailableStandards/index.html). UCS-2 represents a possible maximum of 65,536 characters, or in [hexadecimals](https://en.wikipedia.org/wiki/Hexadecimal) from 0000h - FFFFh (2 bytes). The characters in UCS-2 [are synchronized](http://unicode.org/faq/unicode_iso.html) to the [Basic Multilingual Plane](http://unicode.org/roadmaps/bmp/) in Unicode.

*Character* is an overloaded term, so it is actually more correct to refer to [code points](https://en.wikipedia.org/wiki/Code_point). Code points allow abstraction from the *character* term, and are the atomic unit of storage of information in an encoding.

UCS-2 is a fixed-width encoding; each encoded code point will take exactly 2 bytes. As a SMS message is transmitted in 140 octets, a message which is encoded in UCS-2 has a maximum of 70 characters (really, code points): (140\*8) / (2\*8) = 70.

### How Localmail Encodes Your Messages <a href="#how-twilio-encodes-your-messages" id="how-twilio-encodes-your-messages"></a>

When sending SMS messages with localmail, we'll automatically send messages in the most compact encoding possible. If you include *any* non [GSM-7](https://docs.localmail.io/messaging/learn-more-about-sms/what-is-gsm-7-character-encoding) characters in your message body, we will automatically fall back to UCS-2 encoding (which will limit message bodies to 70 characters each). Additionally, localmail prepends a [User Data Header](https://en.wikipedia.org/wiki/User_Data_Header) of 6 Bytes (this instructs the receiving device on how to assemble messages), leaving **153 GSM-7 characters** or **67 UCS-2 characters** for your message.

Note that this may cause more messages to be sent than you expect - a body with 152 GSM-7-compatible characters and a single unicode character will be split into 3 messages when encoded in UCS-2. This will incur charges for 3 outgoing messages against your account.

### **How Do I Check My Message Can Be Encoded in GSM-7?**

[This page](https://localmail.github.io/message-segment-calculator/) contains an interactive tool which can check if encoding your message in GSM-7 is possible, or if UCS-2 is needed.

### **How Can I Avoid My Messages Being Split When I Expect Them to be in GSM-7?**

Unfortunately, GSM-7 is not a supported character encoding in many text editors. Even setting encoding to ASCII (or US\_ASCII) will not guarantee that text you write will be limited to GSM-7. You can use the above linked tool to quickly check the number of segments - that is, total messages - some text will be divided into.

If you are writing in an editor with Unicode support you'll need to be particularly careful. Text editors designed for writing might automatically add angled smart quotes, non-standard spaces, or punctuation which looks similar to GSM-7 but is a different Unicode character.

### **Why is UCS-2 Used on the GSM Networks when GSM-7 is the Default Alphabet?**

In some languages, more than 128 symbols are commonly used, so a larger universe of potential characters is needed. UCS-2 has been implemented in many GSM networks and on many mobile devices, and is considered the defacto standard fallback.

### **Is UCS-2 Encoding Obsolete?**

By the Unicode standard, UCS-2 is an obsolete encoding because it wasn't designed to allow characters in the so-called [supplementary or 'astral' planes in Unicode](http://unicode.org/roadmaps/smp/). Plane 0, the Basic Multilingual Plane, contains character encodings for what are believed to be the most commonly used characters in modern languages. UCS-2 is limited to FFFFh [code points](https://en.wikipedia.org/wiki/Code_point), or 65,536 possible characters.

UTF-16 is the successor to UCS-2. and has the ability to address Base and 16 Supplementary planes, for a total maximum number of characters of 10FFFFh, or 1,114,112 code points.

### Need More Help?

If you need any further Help During your Integration or questions related to technical know-how, you can reach out to our support team at **<support@localmail.io>**<br>


# GSM-7

GSM-7 is a character encoding standard which packs the most commonly used letters and symbols in many languages into 7 bits each for usage on GSM networks. As SMS messages are transmitted 140 8-bit octets at a time, GSM-7 encoded SMS messages can carry up to 160 characters.

### GSM-7 Encoding Quirks <a href="#gsm-7-encoding-quirks" id="gsm-7-encoding-quirks"></a>

GSM-7 is the standard alphabet for SMS messages, written up in the standard [GSM 03.38](http://www.etsi.org/deliver/etsi_gts/03/0338/05.00.00_60/gsmts_0338v050000p.pdf). It is always supported on [GSM](https://en.wikipedia.org/wiki/GSM) networks. In languages with more than 128 commonly used symbols, GSM-7 is mandated. However, local language support is implemented with shift tables or by changing text encoding to (16-bit) [UCS-2](https://docs.localmail.io/messaging/learn-more-about-sms/what-is-ucs-2-character-encoding) encoding.

The basic character set for GSM-7 [can be found here](https://en.wikipedia.org/wiki/GSM_03.38#GSM_7-bit_default_alphabet_and_extension_table_of_3GPP_TS_23.038_.2F_GSM_03.38).

For some characters, such as '{' and ']', an escape code is required - so even in a GSM-7 encoded message these characters will be encoded using two characters.

SMS messages contain 140 8-bit octets, so up to 160 GSM-7 characters may be transmitted: (140\*8)/7 = 160.

### How Localmail Encodes Your Messages <a href="#how-twilio-encodes-your-messages" id="how-twilio-encodes-your-messages"></a>

When sending SMS messages with Localmail, we'll automatically send messages in the most compact encoding possible. If you include *any* non GSM-7 characters in your message body, we will automatically fall back to [UCS-2](https://docs.localmail.io/messaging/learn-more-about-sms/what-is-ucs-2-character-encoding) encoding (which will limit message bodies to 70 characters each).

Additionally, for long messages--greater than 160 GSM-7 characters or 70 UCS-2 characters--Localmail will split the message into multiple segments. Localmail also prepends a [User Data Header](https://en.wikipedia.org/wiki/User_Data_Header) of six (6) Bytes to instruct the receiving device on how to re-assemble messages. For multi-segment messages, this leaves **153 GSM-7 characters** or **67 UCS-2 characters** per segment.

Note that this may cause more message segments to be sent than you expect - a body with 152 GSM-7-compatible characters and a single unicode character will be split into three (3) messages because the unicode character changes the encoding into less-compact UCS-2. This will incur charges for three outgoing messages against your account.

**How Do I Check if My Message Can Be Encoded in GSM-7?**

[This page](https://localmail.github.io/message-segment-calculator/) contains an interactive tool which can check if encoding your message in GSM-7 is possible, or if UCS-2 is needed.

**How Can I Avoid My Messages Being Split When I Expect Them to be in GSM-7?**

Unfortunately, GSM-7 is not a supported character encoding in many text editors. Even setting encoding to ASCII (or US\_ASCII, or UTF-8) will not guarantee that text you write will be limited to GSM-7. You can use the  [linked tool](https://localmail.github.io/message-segment-calculator/) to quickly check the number of segments - that is, total messages - some text will be divided into.

If you are writing in an editor with Unicode support you'll need to be particularly careful. Text editors designed for writing might automatically add angled smart quotes, non-standard spaces, or punctuation which looks similar to GSM-7 but is a different Unicode character.&#x20;

### Need More Help?

If you need any further Help During your Integration or questions related to technical know-how, you can reach out to our support team at **<support@localmail.io>**


# Alphanumeric Sender ID prefixes for SMS

A Sender ID is a unique Value or E.164 formatted mobile number that shows in the “from” field of your text messages on your mobile phone

Alphanumeric Sender ID allows you to set your company name or brand as the Sender ID when sending one-way SMS messages to supported countries. Alphanumeric Sender IDs may be up to 11 characters. Accepted characters include both upper- and lower-case ASCII letters, the digits 0 through 9, and space: A-Z, a-z, 0-9. They may not be only numbers.

**Improved brand recognition:** Because recipients see your name with every SMS sent, using a recognizable Alphanumeric Sender ID reinforces your branding.

**Increased open rates:** As cases of spam and fraud increase, being able to easily identify the sender is a key factor in whether recipients decide whether to open a message. If the sender is an international or unfamiliar number, the chance of the message being opened is next to none. With Alphanumeric Sender IDs, recipients immediately recognize the sender and know the message is legitimate. As a result, they are up to 80% more likely to open the message.

### What is the meaning of SMS prefixes like QP, VM, AD, VK, etc.?

When a recipient receives a message from any provider or bank etc., a sender ID along with a prefix is displayed in the message inbox. For example- VM-INDUSB, AX-ADHAAR, VK-BAJAJF, and QP-FLPKRT and many more

The prefixes VM, QP, etc. are displayed because SMS is sent in huge numbers via bulk SMS. SMS providers follow rules framed by the Telecom Regulatory Authority of India (TRAI) and according to TRAI rules, Sender ID should be restricted to 6 characters. (E.g VA-ViCARE)&#x20;

So when you receive an SMS like VM-ICICIB, it means the SMS has come from Mumbai SMS Gateway with Vodafone as operator and Icici Bank would be the Sender.

Sender IDs represent the company name of any sender. Mostly we can see Sender ids in the Transactional SMS route. One can use unlimited Sender IDs once they activate their SMS account with any [Operator DLT portal](https://docs.localmail.io/account/dlt-registration-india) in India.

### **Service Provider Codes**

The following are the list of SMS prefixes and their explanation

| **Service Provider**              | **Code** |
| --------------------------------- | -------- |
| Aircel, Dishnet Wireless          | D        |
| Airtel                            | A        |
| BSNL                              | B        |
| BPL Mobile/Loop Telecom           | L        |
| Datacom Solutions                 | C        |
| HFCL Infotel                      | H        |
| Idea Cellular                     | I        |
| MTNL                              | M        |
| Reliance Communications           | R        |
| Reliance Telecom                  | E        |
| S tel                             | S        |
| Shyam Telecom                     | Y        |
| Spice Telecom                     | P        |
| Swan Telecom                      | W        |
| Tata Teleservices                 | T        |
| Unitech                           | U        |
| Vodafone                          | V        |
| V-CON Mobile & Infra Private Ltd. | C        |
| quadrant Televentures Ltd.        | Q        |

###

### **State codes that signify the origin of this SMS:**

| **Service Circle** | **Code** |
| ------------------ | -------- |
| Andhra Pradesh     | A        |
| Assam              | S        |
| Bihar              | B        |
| Delhi              | D        |
| Gujarat            | G        |
| Haryana            | H        |
| Himachal Pradesh   | I        |
| Jammu & Kashmir    | J        |
| Karnataka          | X        |
| Kerala             | L        |
| Kolkata            | K        |
| Madhya Pradesh     | Y        |
| Maharashtra        | Z        |
| Mumbai             | M        |
| North East         | N        |
| Orissa             | O        |
| Punjab             | P        |
| Rajasthan          | R        |
| Tamil Nadu         | T        |
| UP-East            | E        |
| UP-West            | W        |
| West Bengal        | V        |

When you receive an SMS from "VM-LOCALM" - This SMS was delivered by Vodafone Mumbai. "JD-383022" - would then be Promotional SMS by/from Jio Delhi.

### Need More Help?

If you need any further Help During your Integration or questions related to technical know-how, you can reach out to our support team at **<support@localmail.io>**


# support for International  Alphanumeric Sender ID

The alphanumeric sender ID technology allows the sender to send messages using a custom, recognizable sender ID constructed from any combination of numeric and alpha characters (0-9, a-z, A-Z)

The following table captures our up-to-date coverage for Alphanumeric sender support. For countries where the “AlphaNumeric Support” column says “Yes”, you can use an alpha sender when attempting to send messages to these destinations. Among these supported countries, some only support sending transactional messages and require sender ID pre-registration, meaning that you can only use the alpha sender using pre-register with us. You can start the pre-registration process by contacting our support team. It's important that you test out the Alphanumeric support first before sending large batches.

| COUNTRY                                  | ALPHANUMERIC SENDER ID SUPPORTED?                                                                                                                                                                                     |
| ---------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Afghanistan                              | Yes                                                                                                                                                                                                                   |
| Albania                                  | Yes                                                                                                                                                                                                                   |
| Algeria                                  | Yes                                                                                                                                                                                                                   |
| American Samoa                           | No                                                                                                                                                                                                                    |
| Andorra                                  | Yes                                                                                                                                                                                                                   |
| Angola                                   | Yes                                                                                                                                                                                                                   |
| Anguilla                                 | Yes                                                                                                                                                                                                                   |
| Antigua & Barbuda                        | Yes                                                                                                                                                                                                                   |
| Argentina                                | No                                                                                                                                                                                                                    |
| Armenia                                  | Yes - Pre-Registration Required                                                                                                                                                                                       |
| Aruba                                    | Yes                                                                                                                                                                                                                   |
| Australia                                | Yes                                                                                                                                                                                                                   |
| Austria                                  | Yes                                                                                                                                                                                                                   |
| Azerbaijan                               | Yes                                                                                                                                                                                                                   |
| Bahamas                                  | No                                                                                                                                                                                                                    |
| Bahrain                                  | Yes                                                                                                                                                                                                                   |
| Bangladesh                               | Yes                                                                                                                                                                                                                   |
| Barbados                                 | Yes                                                                                                                                                                                                                   |
| Belarus                                  | Yes only for non Belarus based companies - Pre-Registration Required\*                                                                                                                                                |
| Belgium                                  | No                                                                                                                                                                                                                    |
| Belize                                   | Yes                                                                                                                                                                                                                   |
| Benin                                    | Yes                                                                                                                                                                                                                   |
| Bermuda                                  | Yes                                                                                                                                                                                                                   |
| Bhutan                                   | Yes                                                                                                                                                                                                                   |
| Bolivia                                  | Yes                                                                                                                                                                                                                   |
| Bosnia and Herzegovina                   | Yes                                                                                                                                                                                                                   |
| Botswana                                 | Yes                                                                                                                                                                                                                   |
| Brazil                                   | No                                                                                                                                                                                                                    |
| Brunei                                   | Yes                                                                                                                                                                                                                   |
| Bulgaria                                 | Yes                                                                                                                                                                                                                   |
| Burkina Faso                             | Yes                                                                                                                                                                                                                   |
| Burundi                                  | Yes                                                                                                                                                                                                                   |
| Cambodia                                 | Yes                                                                                                                                                                                                                   |
| Cameroon                                 | Yes                                                                                                                                                                                                                   |
| Canada                                   | No                                                                                                                                                                                                                    |
| Cape Verde                               | Yes                                                                                                                                                                                                                   |
| Cayman Islands (UK)                      | No                                                                                                                                                                                                                    |
| Central African Republic                 | Yes                                                                                                                                                                                                                   |
| Chad                                     | Yes - Pre-Registration Required                                                                                                                                                                                       |
| Chile                                    | No                                                                                                                                                                                                                    |
| China\*\*                                | No                                                                                                                                                                                                                    |
| Colombia                                 | No                                                                                                                                                                                                                    |
| Comoros                                  | Yes                                                                                                                                                                                                                   |
| Congo (Republic of the Congo)            | No                                                                                                                                                                                                                    |
| Congo (Democratic Republic of the Congo) | Yes                                                                                                                                                                                                                   |
| Cook Islands                             | Yes                                                                                                                                                                                                                   |
| Costa Rica                               | No                                                                                                                                                                                                                    |
| Croatia                                  | Yes                                                                                                                                                                                                                   |
| Cuba                                     | Yes - Pre-Registration Required                                                                                                                                                                                       |
| Cyprus                                   | Yes                                                                                                                                                                                                                   |
| Czech Republic                           | Yes - Pre-Registration Required                                                                                                                                                                                       |
| Denmark                                  | Yes                                                                                                                                                                                                                   |
| Djibouti                                 | Yes                                                                                                                                                                                                                   |
| Dominica                                 | Yes                                                                                                                                                                                                                   |
| Dominican Republic                       | No                                                                                                                                                                                                                    |
| Ecuador                                  | No                                                                                                                                                                                                                    |
| Egypt                                    | Yes - Pre-Registration Required                                                                                                                                                                                       |
| El Salvador                              | No                                                                                                                                                                                                                    |
| Equatorial Guinea                        | Yes                                                                                                                                                                                                                   |
| Estonia                                  | Yes                                                                                                                                                                                                                   |
| Ethiopia                                 | Yes - Pre-Registration Required                                                                                                                                                                                       |
| Falkland Islands                         | Yes                                                                                                                                                                                                                   |
| Faroe Islands                            | Yes                                                                                                                                                                                                                   |
| Fiji                                     | Yes                                                                                                                                                                                                                   |
| Finland                                  | Yes                                                                                                                                                                                                                   |
| France                                   | Yes                                                                                                                                                                                                                   |
| French Guiana                            | No                                                                                                                                                                                                                    |
| French Polynesia                         | Yes                                                                                                                                                                                                                   |
| Gabon                                    | Yes                                                                                                                                                                                                                   |
| Gambia                                   | Yes                                                                                                                                                                                                                   |
| Georgia                                  | Yes                                                                                                                                                                                                                   |
| Germany                                  | Yes                                                                                                                                                                                                                   |
| Ghana                                    | Yes                                                                                                                                                                                                                   |
| Gibraltar                                | Yes                                                                                                                                                                                                                   |
| Greece                                   | Yes                                                                                                                                                                                                                   |
| Greenland                                | Yes                                                                                                                                                                                                                   |
| Grenada                                  | Yes                                                                                                                                                                                                                   |
| Guadeloupe & Martinique                  | Yes                                                                                                                                                                                                                   |
| Guam                                     | No                                                                                                                                                                                                                    |
| Guatemala                                | No                                                                                                                                                                                                                    |
| Guernsey                                 | Yes                                                                                                                                                                                                                   |
| Guinea                                   | Yes                                                                                                                                                                                                                   |
| Guinea-Bissau                            | Yes                                                                                                                                                                                                                   |
| Guyana                                   | Yes                                                                                                                                                                                                                   |
| Haiti                                    | Yes                                                                                                                                                                                                                   |
| Honduras                                 | Yes                                                                                                                                                                                                                   |
| Hong Kong                                | Yes                                                                                                                                                                                                                   |
| Hungary                                  | No                                                                                                                                                                                                                    |
| Iceland                                  | Yes                                                                                                                                                                                                                   |
| India                                    | No - Registration is needed for local traffic. Customers can register their sender ID with local operators for an additional cost Registration not possible for international traffic. Sender ID will be overwritten. |
| Indonesia                                | Yes - Pre-Registration Required                                                                                                                                                                                       |
| Iran                                     | Yes - Pre-Registration Required                                                                                                                                                                                       |
| Iraq                                     | Yes                                                                                                                                                                                                                   |
| Ireland                                  | Yes                                                                                                                                                                                                                   |
| Isle of Man                              | Yes                                                                                                                                                                                                                   |
| Israel                                   | Yes - Pre-Registration Required for companies based in Israel (Not required if the company is not based in Israel)                                                                                                    |
| Italy                                    | Yes                                                                                                                                                                                                                   |
| Ivory Coast (Côte d'Ivoire)              | Yes - Pre-Registration Required for companies based in Ivory Coast (Not required if the company is not based in Ivory Coast)                                                                                          |
| Jamaica                                  | Yes                                                                                                                                                                                                                   |
| Japan                                    | Yes                                                                                                                                                                                                                   |
| Jersey                                   | Yes                                                                                                                                                                                                                   |
| Jordan                                   | Yes - Pre-Registration Required                                                                                                                                                                                       |
| Kazakhstan                               | Yes - Pre-Registration Required                                                                                                                                                                                       |
| Kenya                                    | Yes - Pre-Registration Required                                                                                                                                                                                       |
| Kuwait                                   | Yes - Pre-Registration Required                                                                                                                                                                                       |
| Kyrgyzstan                               | No                                                                                                                                                                                                                    |
| Laos (Lao People's Democratic Republic)  | Yes                                                                                                                                                                                                                   |
| Latvia                                   | Yes                                                                                                                                                                                                                   |
| Lebanon                                  | Yes - Pre-Registration Required for companies based in Lebanon (Not required if the company is not based in Lebanon)                                                                                                  |
| Lesotho                                  | Yes                                                                                                                                                                                                                   |
| Liberia                                  | Yes                                                                                                                                                                                                                   |
| Libya                                    | Yes                                                                                                                                                                                                                   |
| Liechtenstein                            | Yes                                                                                                                                                                                                                   |
| Lithuania                                | Yes                                                                                                                                                                                                                   |
| Luxembourg                               | Yes                                                                                                                                                                                                                   |
| Macau (PRC)                              | Yes                                                                                                                                                                                                                   |
| Macedonia                                | Yes                                                                                                                                                                                                                   |
| Madagascar                               | Yes                                                                                                                                                                                                                   |
| Malawi                                   | Yes - Pre-Registration Required                                                                                                                                                                                       |
| Malaysia                                 | No                                                                                                                                                                                                                    |
| Maldives                                 | Yes                                                                                                                                                                                                                   |
| Mali                                     | Yes                                                                                                                                                                                                                   |
| Malta                                    | Yes                                                                                                                                                                                                                   |
| Martinique                               | Yes                                                                                                                                                                                                                   |
| Mauritania                               | Yes                                                                                                                                                                                                                   |
| Mauritius                                | Yes                                                                                                                                                                                                                   |
| Mayotte                                  | Yes                                                                                                                                                                                                                   |
| Mexico                                   | Yes - Pre-Registration Required                                                                                                                                                                                       |
| Moldova                                  | Yes                                                                                                                                                                                                                   |
| Monaco                                   | No                                                                                                                                                                                                                    |
| Mongolia                                 | Yes                                                                                                                                                                                                                   |
| Montenegro                               | Yes                                                                                                                                                                                                                   |
| Montserrat                               | Yes                                                                                                                                                                                                                   |
| Morocco                                  | Yes - Pre-Registration Required                                                                                                                                                                                       |
| Mozambique                               | Yes                                                                                                                                                                                                                   |
| Myanmar                                  | Yes - Pre-Registration Required                                                                                                                                                                                       |
| Namibia                                  | Yes                                                                                                                                                                                                                   |
| Nauru                                    | No                                                                                                                                                                                                                    |
| Nepal                                    | Yes - Pre-Registration Required                                                                                                                                                                                       |
| Netherlands                              | Yes                                                                                                                                                                                                                   |
| Netherlands Antilles                     | Yes                                                                                                                                                                                                                   |
| New Caledonia                            | Yes                                                                                                                                                                                                                   |
| New Zealand                              | No                                                                                                                                                                                                                    |
| Nicaragua                                | No                                                                                                                                                                                                                    |
| Niger                                    | Yes                                                                                                                                                                                                                   |
| Nigeria                                  | Yes - Pre-Registration Required for companies based in Nigeria (Not required if the company is not based in Nigeria)                                                                                                  |
| Norway                                   | Yes                                                                                                                                                                                                                   |
| Oman                                     | Yes - Pre-Registration Required                                                                                                                                                                                       |
| Pakistan                                 | Yes - Pre-Registration Required for companies based in Pakistan (Not required if the company is not based in Pakistan)                                                                                                |
| Palestine                                | Yes - Pre-Registration Required                                                                                                                                                                                       |
| Panama                                   | No                                                                                                                                                                                                                    |
| Papua New Guinea                         | Yes                                                                                                                                                                                                                   |
| Paraguay                                 | Yes                                                                                                                                                                                                                   |
| Peru                                     | No                                                                                                                                                                                                                    |
| Philippines                              | Yes - Pre-Registration Required                                                                                                                                                                                       |
| Poland                                   | Yes                                                                                                                                                                                                                   |
| Portugal                                 | Yes                                                                                                                                                                                                                   |
| Puerto Rico                              | No                                                                                                                                                                                                                    |
| Qatar                                    | Yes - Pre-Registration Required                                                                                                                                                                                       |
| Réunion                                  | Yes                                                                                                                                                                                                                   |
| Romania                                  | Yes                                                                                                                                                                                                                   |
| Russia                                   | Yes - Pre-Registration Required ††††                                                                                                                                                                                  |
| Rwanda                                   | Yes                                                                                                                                                                                                                   |
| Samoa                                    | Yes                                                                                                                                                                                                                   |
| San Marino                               | Yes                                                                                                                                                                                                                   |
| Sao Tome and Principe                    | Yes                                                                                                                                                                                                                   |
| Saudi Arabia                             | Yes - Pre-Registration Required for non-Saudi Arabia-based companies Pre-registration not supported for KSA-based companies                                                                                           |
| Senegal                                  | Yes                                                                                                                                                                                                                   |
| Serbia                                   | Yes                                                                                                                                                                                                                   |
| Seychelles                               | Yes                                                                                                                                                                                                                   |
| Sierra Leone                             | Yes                                                                                                                                                                                                                   |
| Singapore                                | Yes                                                                                                                                                                                                                   |
| Slovakia                                 | Yes                                                                                                                                                                                                                   |
| Slovenia                                 | Yes                                                                                                                                                                                                                   |
| Solomon Islands                          | Yes                                                                                                                                                                                                                   |
| Somalia                                  | Yes                                                                                                                                                                                                                   |
| South Africa                             | No                                                                                                                                                                                                                    |
| South Korea                              | No                                                                                                                                                                                                                    |
| South Sudan                              | Yes                                                                                                                                                                                                                   |
| Spain                                    | Yes                                                                                                                                                                                                                   |
| Sri Lanka                                | Yes - Pre-Registration Required                                                                                                                                                                                       |
| St. Kitts and Nevis                      | Yes                                                                                                                                                                                                                   |
| St. Lucia                                | Yes                                                                                                                                                                                                                   |
| Saint Vincent and the Grenadines         | Yes                                                                                                                                                                                                                   |
| Sudan                                    | Yes - Pre-Registration Required for companies based in Sudan (Not required if company is not based in Sudan)                                                                                                          |
| Suriname                                 | Yes                                                                                                                                                                                                                   |
| Swaziland                                | Yes                                                                                                                                                                                                                   |
| Sweden                                   | Yes                                                                                                                                                                                                                   |
| Switzerland                              | Yes                                                                                                                                                                                                                   |
| Syria                                    | No                                                                                                                                                                                                                    |
| Taiwan                                   | No                                                                                                                                                                                                                    |
| Tajikistan                               | Yes                                                                                                                                                                                                                   |
| Tanzania                                 | Yes - Pre-Registration Required                                                                                                                                                                                       |
| Thailand                                 | Yes - Pre-Registration Required                                                                                                                                                                                       |
| Timor-Leste (East Timor)                 | Yes                                                                                                                                                                                                                   |
| Togo                                     | Yes                                                                                                                                                                                                                   |
| Tonga                                    | Yes                                                                                                                                                                                                                   |
| Trinidad and Tobago                      | Yes                                                                                                                                                                                                                   |
| Tunisia                                  | Yes - Pre-Registration Required for companies based in Tunisia (Not required if the company is not based in Tunisia)                                                                                                  |
| Turkey                                   | Yes - Pre-Registration Required                                                                                                                                                                                       |
| Turkmenistan                             | Yes                                                                                                                                                                                                                   |
| Turks and Caicos Islands                 | Yes                                                                                                                                                                                                                   |
| Uganda                                   | Yes                                                                                                                                                                                                                   |
| Ukraine                                  | Yes - Pre-Registration Required for companies based in Ukraine (Not required if the company is not based in Ukraine)                                                                                                  |
| United Arab Emirates                     | Yes - Pre-Registration Required                                                                                                                                                                                       |
| United Kingdom                           | Yes                                                                                                                                                                                                                   |
| United States                            | No                                                                                                                                                                                                                    |
| Uruguay                                  | No                                                                                                                                                                                                                    |
| Uzbekistan                               | Yes                                                                                                                                                                                                                   |
| Vanuatu                                  | Yes                                                                                                                                                                                                                   |
| Venezuela                                | No                                                                                                                                                                                                                    |
| Vietnam                                  | Yes - Pre-Registration Required                                                                                                                                                                                       |
| Virgin Islands (British Virgin Islands)  | Yes                                                                                                                                                                                                                   |
| Yemen                                    | No                                                                                                                                                                                                                    |
| Zambia                                   | Yes - Pre-Registration Required for companies based in Zambia (Not required if the company is not based in Zambia)                                                                                                    |
| Zimbabwe                                 | Yes - Pre-Registration Required for companies based in Zimbabwe (Not required if the company is not based in Zimbabwe)                                                                                                |

### Need More Help?

If you need any further Help During your Integration or questions related to technical know-how, you can reach out to our support team at **<support@localmail.io>**


# SMPP Specification

Local Mail SMPP environment has multiple servers. To benefit from our fault tolerant, high availability platform we prefer SMPP customers to connect directly to our hostname. Based on location and traffic load your application will be automatically connected to the best server.

You should connect to Localmail SMPP servers using SMPP version 3.4.

Below are the connection details required to connect:

| **Setting** | **Value**                                          |
| ----------- | -------------------------------------------------- |
| IP address  | smpp.localmail.io                                  |
| Port        | 2999                                               |
| BIND TYPES  | Transmitter (TX)/ Receiver (RX)/ Transceiver (TRX) |
| system\_id  | your smpp username                                 |
| password    | your smpp password                                 |

{% hint style="info" %}
Throughput is tailored to each customer’s requirement during our onboarding process. In most cases for each bind connected to localmail SMPP servers you will be able to submit a maximum of 50 message per second. You can check with your account manager about specific requirements.
{% endhint %}

For relaying DLR back to your platform localmail servers will send back deliver\_sm to any bind connected with the same systemId of the originating submit\_sm PDU. This includes if you are sending from multiple sites; we will send to any active bind.

### Need More Help?

If u need any further Help During your Integration or questions related to technical know-how, you can reach out to our support team at **<support@localmail.io>**


# Submitting Messages Through SMPP

## Submission Types

Messages may be submitted with either submit\_sm or data\_sm, using either the short\_message or message\_payload fields. The message length may not exceed the byte limit for the network that the message is being sent to.

For example, it takes 140 bytes on GSM networks

* Local Mail SMPP does not support submit\_multi. If the same message has to be sent to multiple destinations, each message must be sent separately.
* Concatenated messages are supported by using the User Data Header (UDH), which is included in the message size byte limit

## Submit Responses

1. A positive response to a submit will contain an error code of zero and a non-null message reference.
2. A negative response will contain a localmail [vendor-specific error code](https://docs.localmail.io/messaging/smpp/smpp-error-codes).

## Character Sets, Class and Data Coding

1. Local Mail SMPP supports the following two types of data coding schemes:\
   • GSM 03.38 Encoding (default)\
   • Latin 1 (ISO-8859-1) encoding

The default character set is GSM 338. Although for data\_coding=1 the character set GSM 03.38 is supported, it is NOT RECOMMENDED, as it is known to cause problems with character encoding.

#### **Message Encoding**

Please set data\_coding = 3 for ISO-8859-1(if and only if told so explicitly) encoded messages and data\_coding=0 for GSM 03.38 encoded messages.

#### **Unicode Messages**

For Unicode messages you have to set data\_coding = 8 and the message is expected in UTF-16 Big Endean format.

## Originators and Destination

The default originator type is full International MSISDN. Alpha numeric or network short code\
originators can be sent by using the following **ton values** in **source\_addr\_ton** field.

• Alphabetic 5\
• National / Network Short Code 3\
• International MSISDN 1

Destination Address types are not supported. They can be set to any value but are always interpreted as follows

1. This requires all the destination numbers to be sent in an international format without the leading 00.

## Long Messages

Long Messages, as the name suggests, are messages whose length exceeds the normal length imposed on short messages (160 for text SMS and 70 for Unicode SMS).

## Concatenated Messages

In this method, the long message is sent in parts as multiple short messages which are then\
displayed as a single SMS on the mobile phone.

#### **Note:** The messages will be joined together on the mobile phone only if the mobile supports long messages; else each message part will be displayed as a separate message.

In this method the client sends the UDH (User Data Header) as part of the short\_message\
field. The UDH contains all the details required for the mobile join the parts and make the\
complete message at its end. In this method the client has to set the esm\_class field in the submit\_sm pdu to 0x43 (Store and Forward with UDHI)

## Message Payload

Local Mail SMPP can accept a message with a length up to 64K octets.&#x20;

In this method the client uses the optional message\_payload of the submit\_sm pdu.

To use this method the client should set the interface\_version to 0x34; without which this field will not be available for sending messages.

### Need More Help?

If you need any further Help During your Integration or questions related to technical know-how, you can reach out to our support team at **<support@localmail.io>**


# TLV Configuration for SMPP DLT Implementation

TLV configuration should be done from your end with the additional new parameters that have been introduced due to DLT implementation.

The additional parameters that need to be added are:

| Parameter           | Name of Parameter | Tag value Hex |
| ------------------- | ----------------- | ------------- |
| Principle Entity ID | PE\_ID            | 0x1400        |
| Template ID         | Template\_ID      | 0x1401        |

One passing these parameters during the request, the relevant Principle Entity (mapped to the account) as well as the Template ID (of the pushed template) will be appended to that message request and the same will be submitted.

### Need More Help?

If you need any further Help During your Integration or questions related to technical know-how, you can reach out to our support team at **<support@localmail.io>**


# SMPP error codes

Our mobile phones sometimes inform us that a text message hasn’t been delivered and it will retry later. It can be frustrating, but now imagine the problem for an enterprise sending hundreds, thousands or millions of messages to their customers. A frustration now becomes a significant business challenge.

The following lists the error messages generated by the Local Mail SMPP. These error codes are included in both intermediate and final delivery notifications. For further information about these error codes and vocabulary, please refer to the GSM protocol specification.

| **Status**                               | **Description**                                                                                                                                                                                                        | **Error Code** |
| ---------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- |
| DELIVRD                                  | SMS successfully delivered                                                                                                                                                                                             | 000            |
| INVALID-SUB                              | Unknown subscriber                                                                                                                                                                                                     | 001            |
| INVALID-SUB                              | Illegal subscriber                                                                                                                                                                                                     | 001            |
| ABSENT-SUB                               | Telecom services have not been commissioned                                                                                                                                                                            | 003            |
| HANDSET-ERR                              | Illegal equipment                                                                                                                                                                                                      | 004            |
| BARRED                                   | SMS is prohibited                                                                                                                                                                                                      | 005            |
| HANDSET-ERR                              | MS does not support SMS                                                                                                                                                                                                | 006            |
| HANDSET-ERR                              | MS receiving error                                                                                                                                                                                                     | 007            |
| NET-ERR                                  | Facility not supported.                                                                                                                                                                                                | 008            |
| MEMEXEC                                  | Handset memory full                                                                                                                                                                                                    | 009            |
| ABSENT-SUB                               | Absent subscriber                                                                                                                                                                                                      | 010            |
| FAILED                                   | SMSC system failure                                                                                                                                                                                                    | 011            |
| NET-ERR                                  | Gateway mobile switching error                                                                                                                                                                                         | 012            |
| MOB-OFF                                  | Mobile handset switched off                                                                                                                                                                                            | 013            |
| FAILED                                   | SMS undelivered due to roaming limitation                                                                                                                                                                              | 014            |
| INVALID-SUB                              | Unidentified subscriber                                                                                                                                                                                                | 015            |
| HANDSET-BUSY                             | Subscriber is busy.                                                                                                                                                                                                    | 016            |
| NET-ERR                                  | Resource cannot be used at GMSC level                                                                                                                                                                                  | 017            |
| SERIES-BLK                               | Series blocked                                                                                                                                                                                                         | 018            |
| NET-ERR                                  | Submission error or invalid input data                                                                                                                                                                                 | 019            |
| BARRED                                   | CUG reject                                                                                                                                                                                                             | 020            |
| EXPIRED                                  | SMS timeout                                                                                                                                                                                                            | 021            |
| <p>TL-NT-MTCHD<br></p>                   | <p>The template does not match the template registered on the DLT platform<br></p>                                                                                                                                     | 023            |
| <p>SDR-TL-MSMAT<br></p>                  | <p>The senderID used along with the template ID do not match as per the registration in DLT portal<br></p>                                                                                                             | 024            |
| <p>TL-NT-FOUND<br></p>                   | <p>The message content sent was not found in the DLT platform as a registered template.<br></p>                                                                                                                        | 025            |
| <p>TL-LMT-EXCED<br></p>                  | <p>The variable content sent exceeds the allowed limit<br></p>                                                                                                                                                         | 026            |
| <p>TL-BLKLST<br></p>                     | <p>The message template pushed has been blacklisted at the DLT platform level.<br></p>                                                                                                                                 | 027            |
| <p>TL-INACTIVE<br></p>                   | <p>The message template sent is in inactive status at the DLT platform level.<br></p>                                                                                                                                  | 028            |
| <p>PRFT-NT-MTCH<br></p>                  | <p>Preference not matched. This error code is received for Service Explicit content only., when the end user is registered under DND. This is completely based on the DND preference selected by the end user.<br></p> | <p>03<br></p>  |
| <p>UNDELIV<br></p>                       | <p>Failed due to network errors<br></p>                                                                                                                                                                                | -              |
| TL-ID-INVLD                              | Invalid template id has been processed.                                                                                                                                                                                | -              |
| <p>Hex – 0x00000400</p><p>Dec – 1024</p> | Series has been temporary / permanently blocked.                                                                                                                                                                       | -              |
| <p>Hex – 0x00000401</p><p>Dec – 1025</p> | Credit exhausted.                                                                                                                                                                                                      | -              |
| <p>Hex – 0x00000404</p><p>Dec – 1028</p> | Invalid destination number \[ number not in proper format, correct format is 919999999999 without + and with 91 followed by the 10 digit number]                                                                       | -              |
| <p>Hex – 0x00000405</p><p>Dec – 1029</p> | ESME client error                                                                                                                                                                                                      | -              |
| <p>Hex – 0x00000444</p><p>Dec – 1092</p> | Message rejected as sender id not allotted for ESME                                                                                                                                                                    | -              |
| <p>Hex – 0x00000454</p><p>Dec – 1108</p> | Text template does not match                                                                                                                                                                                           | -              |
| <p>Hex – 0x00000455</p><p>Dec – 1109</p> | Sender ID not found                                                                                                                                                                                                    | -              |
| <p>Hex – 0x00000453</p><p>Dec – 1107</p> | Template not found.                                                                                                                                                                                                    | -              |
| <p>Hex – 0x00000450</p><p>Dec – 1104</p> | Black-listed number.                                                                                                                                                                                                   | -              |
| <p>Hex – 0x00000481</p><p>Dec – 1153</p> | DND number.                                                                                                                                                                                                            | -              |
| <p>Hex – 0x00000500</p><p>Dec – 1280</p> | Not an Opt - In data                                                                                                                                                                                                   | -              |
| <p>Hex – 0x00000555</p><p>Dec – 1365</p> | Time out for promotional message.                                                                                                                                                                                      | -              |
| <p>Hex – 0x00000777</p><p>Dec – 1911</p> | Duplicate Termination                                                                                                                                                                                                  | -              |
| <p>Hex – 0x00000407</p><p>Dec – 1031</p> | Spam Text                                                                                                                                                                                                              | -              |

### **Content Restrictions**

Many countries enforce different types of content restrictions on network operators.\
For example, in India, companies must register their Content and Consent Templates on the DLT. Japan does not allow you to add URLs in the message body.

### **Time restriction on promotional SMS**

SMS campaigns are one of the best ways to promote your products. However, there are time restrictions enforced by various countries.

For example, in India, if you run a campaign outside the permitted hours of 9:00 PM to 9:00 AM then, the SMS campaign shows as failed or message undelivered.

### **Other reasons for SMS message Failure**

Below are some of the other reasons:

* Exception Time Out
* Message Inbox memory is full on your mobile device (Lack of space in the receiver's Mobile internal memory for new messages).
* The number is out of reach (not reachable or out of coverage area).
* Handset failure(The receiver handset is damaged or is not working properly).
* Network failure (The carrier network is facing some technical difficulties and messages are just not able to be delivered. (Downtime caused by network problems, Security failure, Hardware failure, etc.).

### Need More Help?

If you need any further Help During your Integration or questions related to technical know-how, you can reach out to our support team at **<support@localmail.io>**


# Porting Number Into Local Mail

After you familiarize yourself with our service, you can transfer your existing phone number to Local Mail service. You can transfer any number, wireless, or business landline to Local Mail

## How to Submit a Porting Request

Submit a port request to localmail at **<support@localmail.io>**

Below are the required fields for a successful port-in process:

Number List:\
Current Provider Name:\
Current Provider Account Number:\
Account Type: (Business / Residential)\
Company Name:\
Authorized Name:\
Billing Phone Number:\
Phone Service Address:\
PIN:

{% hint style="info" %}
If requesting E911 capabilities for numbers, please reach out to Localmail prior to submitting the order or in the port order itself.
{% endhint %}

## Porting Process

Transfer process The transfer of your phone number is processed according to:

Your port transfer order will be sent to the losing provider who must confirm the order if the information you provided is valid. If for any reason the information you provide turns out to be invalid, the missing carrier may refuse the order.

If your porting request is rejected, you will be notified. The status of your transfer request will be rejected during this time and will not change until you respond with the correct information.

If your order is accepted, the lossing carrier will notify us when we expect port completion (FOC, or Firm Order Commitment) and the order status will be set to Scheduled.

Local Mail will announce a Completion Date (FOC). This is the date/time the number became active in your Local Mail account.

When the FOC date is confirmed, the number will be added to your account early. Please take this time to adjust the number and its relevant settings.

Local Mail will announce the Closing Date (FOC) and confirm that the number has been added to your account. This is the date/time the number became active in your Local Mail account.

{% hint style="info" %}
Local Mail may need to include Customer Service Record (CSR) documentation and ask you to electronically sign a Letter Of Agency (LOA) for the port to begin processing. LOAs are sometimes required for certain Long Code numbers. An LOA will always be required for Toll-Free numbers.
{% endhint %}

## What could be causing the delay?

Any of the following issues may delay the transfer process. Please take note of your case if we need any corrected information to complete your transfer request.

invalid fields such as service address, billing address, and name

Missing PIN

Making multiple orders with conflicting information

Try to port an inactive number

{% hint style="info" %}
On average, it can take up to 8 business days to complete a small port order without delay. Larger port works will take longer. Toll-free numbers, Canadian numbers, and offline numbers can take up to three weeks to complete.
{% endhint %}

After filling out and submitting the form, you will receive an email with the case number. If your transfer request is declined, you will receive a follow-up email. If there is no response within a week, the ported order will be canceled and the case closed.


# DLT Guide - India

\
**Background:** As of June 1, 2020, DLT (Distributed Ledger Technology) is in place and controlled by the Indian regulator and carriers. Its main purpose is to use blockchain technology to ensure only legitimate traffic is sent via local routes in this country while also protecting end subscribers from unwanted traffic.\
\
**Who does this affect:** The introduction of DLT relates to local traffic only, meaning that traffic sent via international long-distance operators (ILDO)/international routes is unaffected by this change.\
&#x20;\
**Timeline:**

| Phase   | Starting Date   | Customer Requirements                                                                                                              |
| ------- | --------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| Phase 1 | June 2020       | Traffic via local routes to India can be sent only from DLT-registered **Headers** and exclusively by companies with a **DLT ID**. |
| Phase 2 | April 1st, 2021 | In addition to Phase 1 requirements, **Message Template IDs** must be saved in the DLT portal by each Indian entity.               |

\
**Impact:** After Phase 2 begins, transactions not complying with the requirements above will fail to be delivered.

### Difference between Pre DLT vs Post DLT

| Title                                               | Pre DLT                                  | Post DLT                             | Remarks                                                                                                                                                       |
| --------------------------------------------------- | ---------------------------------------- | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Customer Consent                                    | No                                       | Yes                                  | Verifiable digital records of all customer opt-ins are made available on the platform. Customers can also see all their consents on a single dashboard        |
| Customer Preferences                                | Yes                                      | Yes                                  | Consumers can also select a specific day(s) and a time band to block (or) receive. commercial communication in addition to the type of category; viz only DND |
| Entity/Enterprise Registration                      | No                                       | Yes                                  | An Entity need to register with originating access provider (OAP) on the platform                                                                             |
| Telemarketer Registration                           | Yes                                      | Yes                                  | Telemarketer should now register with originating access provider (OAP) and no longer with TRAI                                                               |
| Header Registration                                 | No                                       | Yes                                  | Entity should register all its SMS Headers and Voice CLIs on the platform                                                                                     |
| Scrubbing                                           | Yes (only DND Check for Promotional SMS) | Yes (Promotional & Service Explicit) | Messages will be scrubbed against multiple parameters like Consent, Preference, Header, Template; and not just DND list                                       |
| Complaint Management                                | Yes                                      | Yes                                  | Telecom operators will now be responsible for complaint resolution                                                                                            |
| Interoperability between telecom Service Providers  | No                                       | Yes                                  | Registration details of Entity, Telemarketer, Header, Template will be shared across the network to ensure seamless view                                      |
| 100% Traceability                                   | No                                       | Yes                                  | Everything is recorded and shared on the network using Blockchain technology.                                                                                 |
| <p>Delivery Report</p><p>1. Promotional Traffic</p> | Yes                                      | No                                   | Delivery status for promotional messages will not be available post DLT.                                                                                      |
| 2. Transactional Traffic                            | Yes                                      | Yes                                  | Delivery status for transactional messages will continue to be available post DLT.                                                                            |

Telecom Regulatory Authority of India (TRAI) has released The Telecom Commercial Communication Customer Preference Regulation (TCCCPR) 2018 to regulate Unsolicited Commercial Communication (UCC) and create transparency in the entire process. TRAI has created the guidelines to enhance control, curb any fraudulent activities and provide greater safety to the end customer.

As per the revised TRAI guidelines, The system will be governed using Block-chain technology also known as Distributed Ledger Technology (DLT) and the whole panel entities will be interlinked with each other and the companies who want to communicate with their customers will now have to register themselves with Telecom Operators for sending SMS using their company documentation. The Businesses (Principle Entity) and Service Provider (Telemarketers like LocalMail) will be accountable to telecom operators who will be directly accountable to TRAI.

**Registration Process for Businesses**

In order for any company to be able to terminate messages towards their end customers, the registration needs to be done in any one of the operator’s portals.

* Registration with Jio - [Click Here](https://trueconnect.jio.com/)
* Registration with PingConnect (Videocon) - [Click Here](https://pingconnect.in/entity/register-with)
* Registration with Vodafone - [Click Here](https://www.vilpower.in/)
* Registration with BSNL - [Click Here](https://www.ucc-bsnl.co.in/signup/)
* Registration with Airtel - [Click Here](https://dltconnect.airtel.in/signup/)
* Registration with Tata - [Click Here](https://telemarketer.tatateleservices.com:8082/#/)

#### User Guide

[Register as a Principal Entity/Telemarketer](https://trueconnect.jio.com/assets/Trai_module/SampleFileDownloads/Entity_Registration_and_Login_\(PE_and_TM_\).pdf)

[Header Registration](https://trueconnect.jio.com/assets/Trai_module/SampleFileDownloads/Header_SMS_Registration.pdf)

[Consent and Content Templates Registration](https://trueconnect.jio.com/assets/Trai_module/SampleFileDownloads/Content_and_consent_template_registration_\(PE\).pdf)

[Upload Customer's Consent](https://trueconnect.jio.com/assets/Trai_module/SampleFileDownloads/Bulk_upload_of_Customer's_Consent_\(PE\).pdf)

The government directive links for the implementation of DLT can be found [here](https://trai.gov.in/sites/default/files/Direction_TCCCPR_20012020.pdf) and the updated version [here](https://trai.gov.in/sites/default/files/Direction_19062020.pdf).

As per the latest update from our operators partners in order to facilitate DLT, there is also an expected hike in the pricing and costing of bulk SMS from August 2020. You can read more about it [here](https://economictimes.indiatimes.com/industry/telecom/telecom-news/telemarketers-tear-up-as-telcos-hike-bulk-sms-fees-by-25-30/articleshow/77206891.cms).

### Need More Help?

If you need any further Help During the DLT Content and consent Registration Process, you can reach out to our support team at **<support@localmail.io>**


# DLT Template Registration Process

The Template registration process involves 2 parts:

1. Consent Registration – This involves collection of consent of the end customer to send future communication to them regarding the services being enrolled to. This works like an “Opt-In” message.
2. Content Registration – This template is for the messages that you intend to send out to your clients. This can be OTP, Transactional or Marketing, depending on the content you intend on pushing.

Depending on the content of the message, the type of template should be selected at the time of uploading.

1. Transactional/Service Implicit Templates
2. Promotional Template/ Service Explicit Templates

**Steps to upload Transactional/ Service Implicit templates:**

* Login to the portal with your credentials
* Go to the template section and select the Template type i.e. Transactional / Service Implicit
* Select all the sender ids with which you want to link a particular template
* Provide template name( place a unique name for each template for your reference) & select Template message types such as Text or Unicode
* Provide the template content, use the push button named “Insert Variable” to place variables (1 variable is of 30 characters accordingly choose no of variables required)
* Save the template to send to approval to DLT registrar&#x20;

**Steps to upload Promotional / Service Explicit templates:**

* Login to the portal with your credentials.
* Go to the consent template section, provide the details, and upload the consent template and save. Wait till it gets approved by the DLT registrar.
* Go to the template section and select the Template type i.e. Promotional / Service Explicit
* Select all the sender ids with which you want to link a particular template.&#x20;
* Select the approved consent template with which you want to link a particular message content.
* Provide template name( place a unique name for each template for your reference) & select Template message types such as Text or Unicode.
* Provide the template content, use the push button named “Insert Variable” to place variables ( 1 variable is of 30 characters accordingly choose the number of variables required)
* Save the template to send to approval to the DLT registrar.

Based on the Operator that you choose, can follow the below detailed guides to register the consent and content Templates on their websites.

* Registration with Jio - [Click Here](https://trueconnect.jio.com/)
* Registration with PingConnect (Videocon) - [Click Here](https://pingconnect.in/entity/register-with)
* Registration with Vodafone - [Click Here](https://www.vilpower.in/)
* Registration with BSNL - [Click Here](https://www.ucc-bsnl.co.in/signup/)
* Registration with Airtel - [Click Here](https://dltconnect.airtel.in/signup/)
* Registration with Tata - [Click Here](https://telemarketer.tatateleservices.com:8082/#/)

### Need More Help?

If you need any further Help During the DLT Content and consent Registration Process, you can reach out to our support team at **<support@localmail.io>**


# Content template creation guidelines

### **Transactional**

{% hint style="info" %}
Any message that contains OTP and required to complete a banking transaction initiated by a bank or financial institution will only be considered as transactional messages. This is applicable to all banks (national/scheduled/private/govt or MNCs)
{% endhint %}

**Illustration**:

* OTP message required for completing a net-banking transaction.
* OTP message required for completing credit/debit card transactions at a merchant location.

**Examples for templates:**

| Actual message                                                                                                                                         | Required template format                                                                                                                |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------- |
| 824926 is the otp for trxn of inr 57.75 at zaak epayment services pv with your sbi card xx3931. otp is valid for 10 mins. pls do not share with anyone | {#var#} is the otp for trxn of inr {#var#} at {#var#} with your sbi card{#var#}. otp is valid for {#var#}. pls do not share with anyone |
| 032456 is your OTP for fund transfer for amount Rs.3,000 to Ravi. OTP valid for 8 minutes. Do not share this OTP with anyone.                          | {#var#} is your OTP for fund transfer for amount {#var#} to {#var#}. OTP valid for 8 minutes. Do not share this OTP with anyone.        |
| 428684 is OTP for your eComm Txn for amount Rs.15,000 OTP valid for 8 minutes. Do not share this OTP with anyone.                                      | {#var#} is OTP for your eComm Txn for amount {#var#} OTP valid for 8 minutes. Do not share this OTP with anyone.                        |
| 369147 is OTP for your premium payment for amount Rs.34,000. OTP valid for 8 minutes. Do not share this OTP with anyone.                               | {#var#} is OTP for your premium payment for amount {#var#}. OTP valid for 8 minutes. Do not share this OTP with anyone.                 |
| 852456 is your OTP for BillDesk Payment in NetBanking. OTP is valid for 8 minutes.                                                                     | {#var#} is your OTP for BillDesk Payment in NetBanking. OTP is valid for 8 minutes.                                                     |

### **Service Implicit**

{% hint style="info" %}
Any message arising out of a customer’s action typically against a transaction/relationship with the enterprise that is not promotional will be considered as a Service-Implicit message.
{% endhint %}

**Illustration**:

* Confirmation messages of Net-banking and credit/debit card transactions.
* Product purchase confirmation, delivery status, etc. from e-comm websites
* Customer making payments through Payment Wallet over E-Commerce website/mobile app and an OTP is sent to complete the transaction.
* OTPs required for e-comm website, app logins, social media apps, authentication/verification links, securities trading, Demat account operations, KYC, e-

  wallet registration, etc.
* Messages from TSP/ISP.
* Periodic balance info, bill generation, bill dispatch, due date reminders, recharge confirmation (DTH, cable, prepaid electricity recharge, etc.)
* Delivery notifications, updates, and periodic upgrades.
* Messages from retail stores related to the bill, warranty.
* Messages from schools-attendance/transport alerts.
* Messages from hospitals/clinics/pharmacies/radiologists/pathologists about registration, appointment, discharge, reports.
* Confirmatory messages from app-based services.
* Govt/DOT/TRAI mandated messages.
* Service updates from car workshops, repair shops, gadgets service centers.
* Directory services like Justdial, yellow pages.
* Day-end/month-end settlement alerts to securities/demat account holders.

  Examples for templates:

| Actual message                                                                                                                                                                                                                                                    | Required template format                                                                                                                                                                                                      |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Thank you for using EMI Facility on your IDBI Bank Credit Card 4\*\*\*3495 EMI request for Rs. 25000.00 executed on 01/07/2019                                                                                                                                    | Thank you for using EMI Facility on your IDBI Bank Credit Card {#var#} EMI request for {#var#} executed on {#var#}                                                                                                            |
| YES BANK - Your new bill for BESCOM Bangalore - account 0842948000 for Rs 4339.00 could not get scheduled because auto pay limit is less than the bill amount.                                                                                                    | YES BANK - Your new bill for {#var#} - account {#var#} for Rs {#var#} could not get scheduled because auto pay limit is less than the bill amount.                                                                            |
| account: 674508 is your samsung account verification code.                                                                                                                                                                                                        | account: {#var#} is your samsung account verification code.                                                                                                                                                                   |
| transaction alert: 49.0 was used from your flipkart gift card 6000172013334850 for order od117666705985700000 on flipkart.balance remaining in the card: 0.0.if you dont recognise this transaction, please reach out to <http://fkrt.it/q0rbconnnn> immediately. | transaction alert: {#var#} was used from your {#var#} gift card {#var#} for order {#var#} on flipkart.balance remaining in the card: {#var#}.if you dont recognise this transaction, please reach out to {#var#} immediately. |
| Kindly note that the free look period for your insurance cancellation is 15 days from date of receipt of insurance policy. Regards, Bajaj Finance Ltd.                                                                                                            | Kindly note that the free look period for your insurance cancellation is {#var#} from date of receipt of insurance policy. Regards, Bajaj Finance Ltd.                                                                        |
| dear k, otp is 2568 for order id #101794788 at dailyorders phone case maker mobile app, kindly enter it to confirm your order. thank you!                                                                                                                         | dear {#var#}, otp is {#var#} for order id {#var#} at dailyorders phone case maker mobile app, kindly enter it to confirm your order. thank you!                                                                               |

### **Service-Explicit**

{% hint style="info" %}
These are the messages which require explicit consent from the customer, that has been verified directly from the recipient in a robust and verifiable manner and recorded by the consent registrar. Any service message which does not fall under the service-implicit category.
{% endhint %}

Note: Additionally, the consent template can be linked while creating a service explicit content template.&#x20;

**Illustration**:

• Messages to the existing customers recommending or promoting their other products or services.

Examples for templates:

| Actual message                                                                                                                                          | Required template format                                                                                                                         |
| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| Your Rs.500 exclusive voucher is UNUSED!! Redeem it on purchase of Rs.1,000 at Marks & Spencer. Use code 654321001 Valid till 31st Mar 2020! T\&C.      | Your Rs.{#var#} exclusive voucher is UNUSED!! Redeem it on purchase of Rs.{#var#} at Marks & Spencer. Use code {#var#} Valid till {#var#}! T\&C. |
| Bajaj Finserv Personal Loan needs Minimal Documentation. Fulfil your financial needs in one click <http://m.BajFin.in/Iphr8tFE> .T\&C                   | Bajaj Finserv Personal Loan needs Minimal Documentation. Fulfil your financial needs in one click {#var#}.                                       |
| swedish massage 60min(1): 1355.93,aroma massage 60min(1): 1525.42,s.total(2): 2881.35,                                                                  | swedish massage {#var#},aroma massage {#var#},s.total{#var#},                                                                                    |
| Hi, In order to best serve you and others, could you click on mosl.co/ywq8FBJpAn to share your meeting experience with Motilal Oswal RM Raju Saha on 22 | Hi, In order to best serve you and others, could you click on {#var#} to share your meeting experience with {#var#}                              |

### **Promotional**

{% hint style="info" %}
Any message (sent to non-customers) with an intention to promote or sell a product, good&#x73;**,** or service. Service content mixed with promotional content is also treated as promotional. These messages will be sent to customers after performing the preferences and consent scrubbing function. Consent overrides preferences.
{% endhint %}

**Note**: Additionally, the customer consent template can be linked while creating a service explicit content template. Examples for templates:

| Actual message                                                                                                                                            | Required template format                                                                                                                                |
| --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Lifetime Free ICICI Bank Credit Card with Vouchers from LensKart, Pepperfry, Grabon worth Rs.3000.<br> SMS "apply" to 5676766 TnC apply</p>            | <p></p><p>Lifetime Free ICICI Bank Credit Card with Vouchers from LensKart, Pepperfry, Grabon worth Rs.{#var#}. SMS "{#var#}" to 5676766. TnC apply</p> |
| Pay JUST Rs 640\* pm & get Rs 83,333 for 120 months or payout of Rs 1,00,00,000 With LIC\*(Life Insurance Cover) For Your Family. <http://px2.in/pAD4Tls> | Pay JUST Rs {#var#} pm & get Rs {#var#} for {#var#} months or payout of Rs {#var#} With LIC (Life Insurance Cover) For Your Family. {#var#}             |
| YOU can win Rs 20,000 in Fantasy cricket use code 542321. Install Qureka Pro app now to WIN Click - <https://abc.com>                                     | YOU can win Rs {#var#} in Fantasy cricket use code {#var#}. Install Qureka Pro app now to WIN Click - {#var#}                                           |

### Brand Name

* Every Content Template that is being registered by a Principal Entity should contain ‘Brand Name(s)’ (Complete business name/brand name/trademark) in the content field.
* All the OTP templates (including transactional and service) that have been registered so far, should be re-registered with ‘Brand Name(s)’
* Content Templates for OTP without ‘Brand Name(s)’ will be considered invalid.

| Scenario          | <p></p><p>Scenario 1: Entities notably called with abbreviations and unique</p>                                                                                          | Scenario 2: Entities whose abbreviations represent 2 different names, must use the complete entity name at the footer.                                                                                                                                                                 |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Entity name       | Entity Name: “STATE BANK OF INDIA”                                                                                                                                       | <p>Entity name with same abbreviations:<br> National Payments Corporation of India (NPCI); NUCLEAR POWER CORPORATION OF INDIA LTD (NPCI)</p>                                                                                                                                           |
| Template examples | Template eg: OTP for online purchase of Rs. {#var#} at {#var#} thru State Bank Debit Card {#var#} is {#var#}. Do not share this with anyone – SBI or State Bank of India | <p>Template eg.1: Amt. of {#var#} for {#var#} ({#var#}) will be credited to ur A/C of {#var#} - National Payments Corporation of India</p><p>Template eg.2: Amt. of {#var#} for {#var#} ({#var#}) has been generated with due date of {#var#} – Nuclear Power Corporation of India</p> |

| Scenario          | Scenario 3: Entities whose registered name is different from their registered trademark name, can use their trademark name.                                                                                                                                                                                                                                     | Scenario 4: Entities having multiples brands operated under their registered name, should use their complete brand name.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Entity name       | <p>Entity name: Bundl Technologies Private Ltd (Swiggy) or<br> Atria Convergence Technologies Ltd (ACT Fibernet)</p>                                                                                                                                                                                                                                            | Entity name: ADITYA BIRLA FASHION AND RETAIL LIMITED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Template examples | <p>Template eg.1: Dear Customer, ₹{#var#} has been deducted from your Swiggy Money (Powered by ICICI Bank) balance at {#var#} . Updated Swiggy Money balance is ₹{#var#} – Swiggy</p><p>Template eg.2: Dear Customer, Thank you for choosing ACT. Our engineer will visit in the next {#var#} hours to confirm feasibility at your location. – ACT Fibernet</p> | <p>Template eg.1: Congratulations! \n Your shopping has unlocked a gift voucher of Rs.1000 redeemable on Pantaloons.com on Rs.2499 spend. Valid till 15th Dec. TC. Use Code: {#var#} – Pantaloons</p><p>Template eg.2: As we turn 2 in India, visit the American Eagle store, and get a {#var#} OFF on our ENTIRE COLLECTION, exclusively for you! Limited period offer. \*T\&C apply. Stay safe and keep shopping with us! Learn more – American Eagle</p><p>Template eg.3: Congratulations! \n Your shopping has unlocked a gift voucher of Rs.{#var#} redeemable at {#var#} on Rs.{#var#} spend. Valid till {#var#}. TC. Use Code: {#var#} – Louis Philippe</p> |

### Content template validations

* 2 or more spaces are not supposed to use between 2 words, before word or afterword.
* All special characters (found on the keyboard) are allowed, except < and > symbols.
* Variable format is {#var#} which is case sensitive.
* Or variable can be inserted by clicking the radio button (insert variable) above the text box
* Trans/Service category messages should have variable mandatorily.
* Promo category can have complete fixed content or with a variable part
* There is no limitation in no. of variables per message.
* Values like amount, date, a/c no, merchant names, OTP, codes, URL, customer names, card type, etc. need to be replaced with variables.
* In case trying to upload the same template, The portal would show an error as "Template Message already registered (Template Name - \*\*\*\*)"

### DOs for Content Templates

* Use promotional category for communications intended to send from numerical sender id only.
* Transactional category to be used by banking enterprises only & for OTP messages during fund transfer; online payment; merchant transactions only.
* Service – explicit category needs to link consent template as well, without which the template gets rejected.
* Choose a relevant/recognizable name for templates
* Use message type as “TEXT” for all general messages & “Unicode” for regional messages.
* Variable {#var#} insertion to be required against values like date; amount; a/c no; OTP; names; etc.
* Always use notepad or notepad ++ to create a template, to avoid additional spaces and invalid characters
* Min fixed char required in templates is 6 char (applicable in pure OTP messages only)
* Linking of consent templates for content template categories “promotional” & “service – explicit” is optional (not mandatory)

### DON’Ts for Content Templates

* Same content template against multiple headers.
* Header selection against irrelevant templates
* Selecting “Transactional” category by non-banking enterprises.
* No or invalid variable format in templates.
* Using double spaces in templates (this can be pre-checked by verifying the template on notepad++ before template submission)
* Templates with less than 6 char or variable insertion alone as a template using multiple templates (eg: Dear customer {#var#}{#var#}{#var#}.)
* Do not use external fonts or characters other than those appear on the keyboard.

### Need More Help?

If you need any further Help During the DLT Content and consent Registration Process, you can reach out to our support team at **<support@localmail.io>**


# Consent and Content Templates Registration

Consent Template a Standard message that is sent to end users of the enterprise for their consent to receive communications from respective enterprise.

### Introduction

As per the provisions of TRAI’s TCCCPR 2018, all Principal Entities are required to declare and register the consents of their customers on the DLT portal of Telecom Service Provider (TSP).

“Consent” means any voluntary permission given by the customer to the sender to receive commercial communication related to a specific purpose, product, or service. Consent may be explicit or inferred.

“Explicit consent” means such consent as has been verified directly from the Recipient in a robust and verifiable manner and recorded by Consent Registrar as defined under these regulations.

“Inferred Consent” means any permission that can be reasonably inferred from the customer’s conduct or the Relationship between the Recipient and the Sender

{% hint style="info" %}
Any commercial communication with inferred service/transactional content does not require consent, hence, no consent template required for such messages Consent Template is required only to obtain customer consent for sending messages that have otherwise been blocked by the customer by way of his/her DND Preference
{% endhint %}

**Example of consent template**: “By sending a text to this code I agree to receive automated marketing text messages from (company) to the mobile number I have provided. I understand that I m not required to provide my consent as a condition of purchasing any goods or services. Reply HELP for help. Reply STOP to cancel. Message and data rates may apply”

### Does the Consent template apply to all messages? Do I need to get consent from my customers to send OTPs as well?

Consent template applies only to Service Explicit messages. This does not apply to Transactional or Service Implicit messages.

The consent template is a message that is sent to them asking them “consent” to send the messages regarding your service, much like an “opt-in” message. In case they are not interested, they will choose not to respond or respond with “no” post which you would not be able to add to your database for communication, and neither would you be allowed to send further messages to them for explicit content.

This would not apply to Transactional or Service Implicit, since these messages are sent to customers who have already registered for a service that you are providing, thereby giving you “consent” to send them transactional and update relates messages.<br>

### Difference between Consent and Content Templates&#x20;

| Title                   | Consent Template                                                                                      | Content Template                                                                                   |
| ----------------------- | ----------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| **Definition**          | It is for receiving the customer's permission before sending promotional SMS                          | It is the message text that has to be submitted on the DLT platform                                |
| **Routes**              | It is for Promotional and Service Explicit SMS routes                                                 | It is for every SMS sending route - Transactional, Service Implicit, Service Explicit, Promotional |
| **Actual message text** | Consent Template should not contain actual message text. It is just to take permission from customers | Content Template contains the actual text that will be delivered to the customer                   |
| **Example Text**        | We would like to send messages regarding marketing offers from our website.                           | <p>Dear user,<br>{#var#} is OTP for your Login.</p>                                                |
| **Mandatory**           | Consent Template is mandatory for Promotional and Service Explicit SMS routes                         | Content Template is mandatory for any SMS sending type.                                            |

### List of dos and don'ts&#x20;

| Do’s for Consent Template                                                                                    | Don’ts for Consent Template                                                                                                                          |
| ------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| Choose a short name for a template that is relevant. This helps in choosing right                            | Not to use generic names for templates like “template1; etc..”.                                                                                      |
| consent template while creating content templates in promotional or service explicit categories.             | <p>Not to mention invalid or irrelevant names under the brand. This will be treated as</p><p>an invalid template.</p>                                |
| Brand name should be relevant to details mentioned in the scope of content                                   | Not to enter actual message sent to the customer, no shot message like “consent; sms to customers; etc…”                                             |
| <p>Scope of content should be relevant to mentioned brand & intent of the consent to</p><p>be mentioned.</p> | <p>No variable to be used in the scope of consent, as variable applicable to content</p><p>templates only.</p>                                       |
| If an entity wants to provide opt-out information, that needs to be provided completely.                     | <p>Multiple consents not required by an entity unless it is required by an enterprise, like</p><p>example mentioned explaining brand name field.</p> |
| Ex: “To opt-out, send SMS as STOP to 1234567890”                                                             | -                                                                                                                                                    |

### The consent template registration request can be rejected by the approver due to the following Reasons

1\) The Consent template already exists

2\) The format of the consent template is invalid

3\) The template is too long

4\) The Consent template includes objectionable word(s)

5\) There are too many variables in the template

6\) The content is misleading

7\) The Content matches with another Entity’s template

8\) Against SEBI policy

9\) Look-alike with government programs/initiatives etc

### Need More Help?

If you need any further Help During the DLT Content and consent Registration Process, you can reach out to our support team at **<support@localmail.io>**


# Letter of Authorization (LOA) for DLT?

As per the DLT process issued by TRAI, to make sure that the person submitting the documents and completing the registration process for any company has sufficient rights to do so, it has been made mandatory to submit a Letter of Authorization, mentioning the same, at the time of registration in the portal.

This will help curb misuse and fake registrations in the DLT portal

For your convenience, a template of the Letter of Authorization is attached.&#x20;

This can be edited and printed on your company letterhead.

{% file src="/files/-Mg4qld4bFV1p9fzGk8w" %}
LOA Template
{% endfile %}


# Sending messages on behalf of another company?

Yes, you can most definitely execute messages on behalf of another company, provided that the Entity registration, as well as the Template registration, is taken care of, by them itself and they provide these details as well as authorization also to execute messages on their behalf

The authorization for sending messages is done through a letter of authorization (third party message execution), which needs to be submitted by the registered company, to the company that they want to authorize for executing messages on their behalf.

For example, a school, ABC School, wants a company XYZ company to trigger the messages on behalf of the school, then ABC must do the DLT registration, along with the templates.

ABC School will then provide the DLT registered details on the letter of authorization, providing rights to XYZ company to execute messages using the school’s details shared to execute messages.

Things to remember about the Letter of Authorization – Third Party (LOA – 3P):

1. Must be submitted by the company/business owning the Entity ID
2. LOA – 3P should be signed by an authorized person of the company/business and should have the company/business seal
3. It should contain details of the original company, along with DLT details:
   1. DLT Entity ID
   2. Sender ID to be used
   3. Nominated person’s details along with contact number and official email ID
4. This document must be sent to the operator directly and must wait for an acknowledgment.
5. Once confirmed, the authorized company can start sending messages on behalf of the authorizing company.

{% file src="/files/-Md4PM-iIa\_VN0OP1Np9" %}
Download LOA-3P
{% endfile %}

### Need More Help?

If you need any further Help During your Registration Process, you can reach out to our support team at **<support@localmail.io>**


# Frequenty Asked Questions

#### 1. Is the Content Template Registration mandatory on the DLT platform?

Yes, Content Template Registration is mandatory along with passing an approved Template Id, and principle entity id in SMS submission.

Also, all kinds of SMS content, i.e., OTPs, Transactional, and Promotional, have to be registered on your respective DLT platform.

#### 2. What is the format of Variable while applying Content Template on the DLT platform?

On every DLT platform, each Variable should be written as {#var#}. If you use any other variable format, it will not be considered a variable, and your SMS delivery will be impacted.

#### 3. What is the character limit in Variable {#var#} while sending SMS?

The variable's actual value while sending an SMS will be a maximum of 30 characters for both English and Unicode.

#### 4. Is there any limit on the number of variables allowed in a single Content Template?

A maximum of 5-6 variables is allowed in one Content Template.

#### 5. Is Brand Name mandatory in every SMS Template while applying on the DLT platform?

Yes, it is necessary to include your Brand Name in every SMS Content Template.

#### 6. How many Headers (Sender Id) can be associated with a Content Template?

Multiple Headers can be mapped against the same Content Template during registration. This might be different on various DLT platforms managed by operators.

#### 7. How long does it take to get the approval of the Content Template from the DLT platform?

Due to a large number of requests, you may face some delays in approval. However, a minimum of 2-4 business days wait is expected. (In recent user interaction we have observed it to be 1 working day for few users)

#### 8. Is adding a Brand Name compulsory for all kinds of content templates?

Brand Name is compulsory in all kinds of SMS content: Promotional, Transactional, and OTPs.

#### 9. Getting rejection on a template with an error *Wrong Content-Type Selected*?

Please note, your SMS content should be applied under the service implicit or explicit category only. Do not apply under promotional or transactional categories.

#### 10. Getting rejection on a template with an error *Brand Name not Added*.

Adding a Brand name in an SMS content template is mandatory and should be explicitly mentioned in the SMS body.

### Need More Help?

If you need any further Help During your Registration Process, you can reach out to our support team at **<support@localmail.io>**


# Vulnerability Reporting

Address potential vulnerabilities in any aspect of our cloud services

Localmail Web Services takes security very seriously, and investigates all reported vulnerabilities. This page describes our practice for addressing potential vulnerabilities in any aspect of our cloud services.

If you would like to report a vulnerability or have a security concern regarding Localmail cloud services or open source projects, please email **<support@localmail.io>** So that we may more effectively respond to your report, please provide any supporting material (proof-of-concept code, tool output, etc.) that would be useful in helping us understand the nature and severity of the vulnerability.

<br>


# Terms of Service

#### Localmail Web Services - Terms of Service

**Welcome to Localmail Web Services!**

**1. Agreement to Terms**

* By using our services, you agree to these Terms of Service. If you're using our services on behalf of an organization, you agree on behalf of that organization.

**2. Service Description**

* We provide API services for data management, enrichment, and enhancement, designed to help businesses like yours.

**3. Account Registration**

* To use our services, you'll need to create an account. Please provide accurate and current information.

**4. Privacy and Security**

* Your data is important to us. We're committed to keeping it safe and will handle it according to our Privacy Policy.

**5. Usage Guidelines**

* Use our services responsibly. Don't misuse them to create spam, fraud, or harm others. We reserve the right to suspend or terminate accounts that violate these terms.

**6. Intellectual Property**

* We respect intellectual property rights and expect you to do the same. You retain ownership of your data, but by using our services, you grant us a license to use it to provide our services.

**7. Payment Terms**

* Some of our services may require payment. We'll bill you according to the agreed pricing plan and payment schedule.

**8. Service Availability**

* We aim for high availability, but there may be occasional downtime for maintenance or unexpected issues.

**9. Changes to Services**

* We're always improving. We may add, modify, or discontinue features or services. We'll give you notice when significant changes affect your use of the service.

**10. Termination**

* You can stop using our services at any time. We also reserve the right to suspend or terminate your access if you violate these terms.

**11. Limitation of Liability**

* We work hard to provide the best service we can, but we're not liable for all issues. Our responsibility for anything that happens through your use of our services is limited to the amount you paid us.

**11. Contact Us**

* Have questions or concerns? Reach out to us at **<support@localmail.io>**


# Privacy Policy

#### Localmail Web Services - Privacy Policy

**Welcome to Localmail Web Services!**

**Your Privacy Matters to Us**

**1. Introduction**

* This Privacy Policy explains how we handle and protect your personal and business data when you use our services.

**2. Data We Collect**

* **Information You Provide:** This includes account registration details, contact information, and any other data you input while using our services.
* **Automated Collection:** We automatically collect certain data when you use our services, like usage statistics and technical information.

**3. How We Use Your Data**

* To provide and improve our services.
* To communicate with you about your account or our services.
* For billing and payment processing.
* To ensure security and troubleshoot issues.

**4. Data Sharing and Disclosure**

* We do not sell your data.
* We may share data with service providers who assist us in offering our services, under strict confidentiality agreements.
* We may disclose data if required by law or to protect our rights.

**5. Data Security**

* We use industry-standard measures to protect your data from unauthorized access, disclosure, alteration, and destruction.

**6. Your Data Rights**

* You can access, update, or delete your personal information through your account settings.
* You have the right to opt-out of certain uses of your data, subject to applicable laws.

**7. Data Retention**

* We retain your data as long as your account is active or as needed to provide services to you.
* We may retain certain data for legal obligations and dispute resolution.

**8. International Data Transfers**

* Your data may be stored and processed in any country where we have facilities or service providers, and by using our services you consent to the transfer of data to countries outside of your country of residence.

**9. Changes to This Policy**

* We may update this policy from time to time. We'll notify you of significant changes and indicate the date of the latest revision.

**10. Contact Us**

* For questions about this policy or your data, please contact us at **<support@localmail.io>**


