Yes! Using template id in flow id
In template, we just configure the text template with variable and sender id
What exactly did you configure? Please share a screenshot
SMS content, variables, Sender ID
Thanks let me check
Thank you!
is this set as the default template?
Yes!
And you still get the same error? Please share the new details
Yes! Same error
When I change the βrecipientsβ to βmobilesβ it works. Please the postman api call in the above screenshot
please share a screenshot. as well as the logs from the appwrite-worker-messaging container
[notice] Starting worker cc64ffd05239:7:v1-messaging
[notice] Starting work on (Job{v1-messaging} | ID: 87fd6622bada1074361831fcaafb6bc9 | MessagingV1 | [{"project":null,"user":null,"payload":[],"recipient":"+91123456789","message":"325347","events":["."]}])
[notice] (Job{v1-messaging} | ID: 87fd6622bada1074361831fcaafb6bc9 | MessagingV1 | [{"project":null,"user":null,"payload":[],"recipient":"+91123456789","message":"325347","events":["."]}]) has finished
thanks. let me get this to the team. they're offline by now, though, so they won't be able to get to this until monday
although maybe you can try this:
docker compose exec appwrite-worker-messaging sed -i 's#\[$to\]#$to#g' /usr/src/code/vendor/utopia-php/messaging/src/Utopia/Messaging/Adapters/SMS/Msg91.php
docker compose restart appwrite-worker-messaging
@Steven if possible can you discuss with the team to implement the send otp api (https://docs.msg91.com/reference/sendotp) instead of flow? send otp is specifically for authentication whereas flow/campaign is for transactional sms. The OTP sms has higher priority than transactional sms.
No. Because our messaging is designed to send any sms message, not just otp
This workaround works! Thank you so much @Steven. Much appreciate your support ππ»
What solution did you implement finally?
We are using SMS service from Msg91.
- Get Approval from DLT provider - Header/Sender ID and Template ID.
- Set Sender ID in Msg91 > SMS
- Set Template in Msg91 > SMS. Here the variable should be
otp - Set Auth Key in Msg91 > Setting > Auth key.
- Set env in Appwrite.
Sender IDfrom step 2.Auth Keyfrom Step 4.Flow IDis theTemplate IDfrom step 3. - Run this command from @Steven
docker compose restart appwrite-worker-messaging```
Please create a new <#1072905050399191082> post
[CLOSED] msg91 does not work for otp
Recommended threads
- Error connecting Github
I have followed the documentation online for setting up VCS and cannot get my Github to properly connect in Functions. When I press the "Connect to Github" I am...
- delete cancelled site deployment
I would like to remove a cancelled site deployment, but the site menu shows only "Redeploy".
- Self-host migration from 1.8.X
Is it safe to now migrate from 1.7.4 to 1.8.X on my selfhost?