หากต้องการส่งการแจ้งเตือนทาง SMS คุณต้องตั้งค่ารายละเอียดการกำหนดค่า SMS
ไปที่การตั้งค่า -> การตั้งค่าธุรกิจ -> การตั้งค่า SMS
จากที่นี่ เราสามารถตั้งค่า SMS สำหรับผู้จำหน่ายส่วนใหญ่ที่รองรับ REST API ซึ่งส่วนใหญ่รองรับแล้ว ถ้าไม่เช่นนั้นให้ตรวจสอบกับผู้ให้บริการของคุณ
ไปที่เอกสารประกอบ REST API ของผู้จำหน่ายของคุณ ติดต่อผู้จำหน่ายของคุณหากคุณไม่พบ
ที่นี่คุณจะพบบริการ 3 ประเภทที่แตกต่างกัน: Nexmo, Twilio และอื่นๆ
Let the api structure is
http://your-sms-website.com/api/sendmsg.php?user=&pass=&sender=&phone=&text=
So the configuration will be as follows
URL: https://rest.nexmo.com/sms/json
Send to parameter name: phone
Message parameter name: text
Request Method: GET
Parameter 1 key: user Parameter 1 value:
Parameter 2 key: pass Parameter 2 value: Parameter 3 key: sender Parameter 3 value:
Let the api structure is
$api_url = “http://sms-pos.testsms.com/app/smsapi/index.php?username=&password=&campaign=XXXXXX&routeid=XXXXXX&type=text&contacts=97656XXXXX,98012XXXXX&senderid=XXXXXX&msg=Hello+People%2C+have+a+great+day”;
So the configuration will be as follows
URL: http://sms-pos.testsms.com/app/smsapi/index.php
Send to parameter name: contacts
Message parameter name: msg
Request Method: GET
Parameter 1 key: username Parameter 1 value:
Parameter 2 key: password Parameter 2 value:
Parameter 3 key: campaign Parameter 3 value: XXXXXX
Parameter 4 key: routeid Parameter 4 value: XXXXXX
Parameter 5 key: type Parameter 5 value: text
Parameter 6 key: senderid Parameter 6 value: XXXXXX
If required in your api, you can also set headers
Header 1 key: Header 1 value:
Header 2 key: Header 2 value:
Header 3 key: Header 3 value:
Go to Settings -> Business Settings -> Email settings
Add all the Email SMTP configuration details & it will work.
For sending mail notifications, the business-level mail setup should be done.
For this provide the required details in Settings -> Business Settings -> Email settings
For the purpose of receiving forgot password reset link, the application-level mail setup is to be done on .env file.
Refer this – Document Link
1. Is it possible to send SMS when installing in localhost?
Yes it is possible to send SMS from localhost with an internet connection
1. Whether SMS feature work without adding country codes to mobile numbers?
Some APIs will work without adding country code and some may not. It is based on your API provider.