
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 ID
from step 2.Auth Key
from Step 4.Flow ID
is theTemplate ID
from 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
- Function delayed execution does not exec...
Hi, I’m having issues with scheduled function executions. Sometimes the delayed function triggers, but a lot of the time it doesn’t. For example the status just...
- Deployment Error After Migrating from 1....
Hi Everyone, After recently migrating my self-hosted Appwrite instance from version 1.6.0 to 1.6.2, I’m encountering an issue while deploying a function. The d...
- I create storage and save images in that...
