SMS
SMS and LMS are not switched automatically — you must specify the channel_order that matches the send type explicitly. For a short message (SMS), set channel_order to 'sms'. For a long message (LMS), see LMS / MMS.
smsSMS
A short message channel of 90 bytes or less.
Single sendFallbackReservationSender number required
Input fields
| Column | Required | Description |
|---|---|---|
channel_order | ✅ | 'sms' |
callback | ✅ | Sender number |
recipient | ✅ | Recipient number |
msg_status | ✅ | '1' |
request_date | ✅ | Send request time |
mt_content | ✅ | Message content (90 bytes or less) |
origin_cid | Sender identification code |
Examples
Send a single SMS
SQL
INSERT INTO msg_tran (channel_order, recipient, msg_status, request_date, callback, mt_content)
VALUES ('sms', '수신번호', '1', NOW(), '발신번호', '안녕하세요. 테스트 문자입니다.');
SMS Fallback when Alimtalk fails
If the Alimtalk send fails, an SMS is sent automatically.
SQL
INSERT INTO msg_tran (
channel_order, recipient, msg_status, request_date,
callback,
kko_sender_key, kko_template_code, kko_content, kko_msg_type,
mt_content
) VALUES (
'alimtalk,sms', '수신번호', '1', NOW(),
';발신번호',
'발신프로필키', '템플릿코드', '#{name}님, 주문이 완료되었습니다.', 'AT',
'주문이 완료되었습니다.'
);
In
callback, the;skips Alimtalk (which has no sender number) and specifies the SMS sender number.