Sending XMS(SMS/LMS/MMS)
You can send XMS (SMS/LMS/MMS) to domestic users. If you have a separate contract for international XMS delivery, you can send international XMS through ISM or ILM.
NOTE
- For detailed information on specifications by message type, refer to the Appendix. Layout Guide and Message Specs document.
- Please refer to the Table Specification document for the data you enter in each table.
Sending SMS
To create SMS data, enter the data into the table in the xms_message of the agent.ini file > [TABLE] section. The main columns of the INSERT statement are as follows.
코드예제Sample Code of Sending SMS
INSERT INTO XMS_MESSAGE (
KKO_MSG,
PHONE_MSG,
MSG_TYPE,
MOBILE_NO,
SENDER_NO,
RESERVE_DATE,
REG_DATE,
IMG_ATTACH_CD)
VALUES (,
'Data to send an SMS ',
'SM', # Message type, [SM , LM, MM]
01011112222, # Recipient’s number needs to be changed.
01011112222, # Sender’s number needs to be changed.
now(), # If future time is input, the message will be sent later.
now(),
'N');
Sending LMS
To create LMS data, enter the data into the table in the xms_message of the agent.ini file > [TABLE] section. The main columns of the INSERT statement are as follows.
코드예제Sample Code of Sending LMS
INSERT INTO XMS_MESSAGE (
KKO_MSG,
PHONE_MSG,
MSG_TYPE,
MOBILE_NO,
SENDER_NO,
RESERVE_DATE,
REG_DATE,
IMG_ATTACH_CD)
VALUES (
'LMS title',
'Data to send an LMS ',
'LM', # message typw, [SM , LM, MM]
01011112222, # Recipient’s number needs to be changed.
01011112222, # Sender’s number needs to be changed.
now(), # If future time is input, the message will be sent later.
now(),
'N');
Sending MMS
To create MMS data, enter the data into the table in the xms_message of the agent.ini file > [TABLE] section. The main columns of the INSERT statement are as follows.
코드예제Sample Code of Sending MMS
INSERT INTO XMS_MESSAGE (
TITLE,
PHONE_MSG,
MSG_TYPE,
MOBILE_NO,
SENDER_NO,
RESERVE_DATE,
REG_DATE,
MMS_IMG1,
IMG_ATTACH_CD)
VALUES (
'MMS title',
'test data for sending MMS',
'MM', # Message type, [SM , LM, MM]
01011112222, # Recipient’s number needs to be changed.
01011112222, # Sender’s number needs to be changed.
now(), # If future time is input, the message will be sent later.
now(),
'/test/img.jpeg',
'M'); # When attaching an image, input ‘M’. This will be automatically changed to ‘Y’ when loading is complete.
Sending ISM(International SMS)
To create IMS data, enter the data into the table in the xms_message of the agent.ini file > [TABLE] section. The main columns of the INSERT statement are as follows.
NOTE
Sending ISM (International SMS) messages requires a separate contract.
코드예제Sample Code of Sending ISM
INSERT INTO XMS_MESSAGE (
KKO_MSG,
PHONE_MSG,
MSG_TYPE,
MOBILE_NO,
SENDER_NO,
RESERVE_DATE,
REG_DATE,
IMG_ATTACH_CD)
VALUES (,
'test data for sending SMS',
'ISM', # Message type, [SM, LM, MM]
01011112222, # Recipient’s number needs to be changed.
01011112222, # Sender’s number needs to be changed.
now(), # If future time is input, the message will be sent later.
now(),
'N');
Sending ILM(Internationa LMS)
To create ILM data, enter the data into the table in the xms_message of the agent.ini file > [TABLE] section. The main columns of the INSERT statement are as follows.
NOTE
Sending ILM messages requires a separate contract.
코드예제Sample Code of Sending ILM
INSERT INTO XMS_MESSAGE (
KKO_MSG,
PHONE_MSG,
MSG_TYPE,
MOBILE_NO,
SENDER_NO,
RESERVE_DATE,
REG_DATE,
IMG_ATTACH_CD)
VALUES (
'ILMS test title',
'test data for sending ILMS',
'ILM', # Message type, [SM, LM, MM]
01011112222, # Recipient’s number needs to be changed.
01011112222, # Sender’s number needs to be changed.
now(), # If future time is input, the message will be sent later.
now(),
'N');