
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
- how many Teams can be created?
I am creating an app where I will let users create groups. This could mean there will be many groups created by user, to isolate those groups properly I am thin...
- Cannot create a user
Hi, I am using a lowcoder frontend and trying to create a user in Appwrite (python function). Unfortunately, all I got is an error: "Raw body: Error". It means...
- React native app login via Safari
Hi! I deployed for debug my React Native app in web, chrome everythink works well but in safari on mac and ios I cant login. I found this one error in safari co...
