# SMS messages with Twilio not sending

**URL:** https://forum.mautic.org/t/sms-messages-with-twilio-not-sending/29811
**Category:** Product Support
**Created:** [November 2, 2023, 2:32pm UTC](https://forum.mautic.org/t/sms-messages-with-twilio-not-sending/29811 "2023-11-02T14:32:32Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ebdavison](https://avatars.discourse-cdn.com/v4/letter/e/f17d59/32.png) [@ebdavison](https://forum.mautic.org/u/ebdavison)
#### Post date: [November 2, 2023, 2:32pm UTC](https://forum.mautic.org/t/sms-messages-with-twilio-not-sending/29811/1 "2023-11-02T14:32:32Z")

</div>

**Your software**  
My Mautic version is: 4.4.10  
My PHP version is: 7.4.33  
My Database type and version is: mysql 5.7.42-46

**Your problem**  
My problem is basically the same as in these posts:

- [Unable to get Twilio text message (SMS) to work](https://forum.mautic.org/t/unable-to-get-twilio-text-message-sms-to-work/26750); text messages get queued and stay in pending state and never send.
- [Twilio Plugin Configured But Texts Never Go Beyond Pending - #8 by juicymediagroup](https://forum.mautic.org/t/twilio-plugin-configured-but-texts-never-go-beyond-pending/13320/8)

These errors are showing in the log:  
no errors shown in the logs

Steps I have tried to fix the problem:

- publish/unpublish the campaign
- add a publish date/time
- use mautic:broadcast:send

---

<div class="post-metadata">

### Author: ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)
#### Post date: [November 2, 2023, 10:53pm UTC](https://forum.mautic.org/t/sms-messages-with-twilio-not-sending/29811/2 "2023-11-02T22:53:25Z")

</div>

Segment sms send does not work, because some exception gets triggered. The reason you do not see the exception is because the sending is wrapped in try catch block.

We need to fix the underlying issue and change the try catch block, until then only campaign sms send is working.

Regards, M.

---

<div class="post-metadata">

### Author: ![ebdavison](https://avatars.discourse-cdn.com/v4/letter/e/f17d59/32.png) [@ebdavison](https://forum.mautic.org/u/ebdavison)
#### Post date: [November 3, 2023, 7:25am UTC](https://forum.mautic.org/t/sms-messages-with-twilio-not-sending/29811/3 "2023-11-03T07:25:38Z")

</div>

I suppose I should have been more specific.

I have a campaign with two steps for testing sms. The first selects contacts and the second one sens a text message.

The contacts for testing were successfully selected for the campaign. But the send text message is saying pending and the text does not get sent.

What settings are required for the campaign to send a text message?

---

<div class="post-metadata">

### Author: ![iparker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/iparker/32/1936_2.png) [@iparker](https://forum.mautic.org/u/iparker)
#### Post date: [January 11, 2024, 10:14am UTC](https://forum.mautic.org/t/sms-messages-with-twilio-not-sending/29811/4 "2024-01-11T10:14:24Z")

</div>

So is this a known issue/bug with a git issue?

I currently have the same problem (see [Problem sending text messages/SMS](https://forum.mautic.org/t/problem-sending-text-messages-sms/30441))?

---

<div class="post-metadata">

### Author: ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)
#### Post date: [January 11, 2024, 10:27am UTC](https://forum.mautic.org/t/sms-messages-with-twilio-not-sending/29811/5 "2024-01-11T10:27:40Z")

</div>

Please check the docs issue here: [Update Twilio documentation · Issue #75 · mautic/user-documentation · GitHub](https://github.com/mautic/user-documentation/issues/75)

I guess it _might_ be something to check. If you are trying to put the telephone number in the field, that is wrong. You have to set the messaging service ID now (obscured in the screenshot below).

 ![screenshot-console.twilio.com-2024.01.11-10_26_29](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/c/c7ad4af1af7cc8d0ec06f972cf0e66b7f2272bc6.png)

---

<div class="post-metadata">

### Author: ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)
#### Post date: [January 11, 2024, 4:39pm UTC](https://forum.mautic.org/t/sms-messages-with-twilio-not-sending/29811/6 "2024-01-11T16:39:12Z")

</div>

Yeah its a known issue, not sure if its tracked on the githu though.
