# Twilio Plugin Configured But Texts Never Go Beyond Pending

**URL:** https://forum.mautic.org/t/twilio-plugin-configured-but-texts-never-go-beyond-pending/13320
**Category:** Product Support
**Created:** [March 10, 2020, 8:58pm UTC](https://forum.mautic.org/t/twilio-plugin-configured-but-texts-never-go-beyond-pending/13320 "2020-03-10T20:58:00Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![siteleas](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/siteleas/32/1047_2.png) [@siteleas](https://forum.mautic.org/u/siteleas)
#### Post date: [March 10, 2020, 8:58pm UTC](https://forum.mautic.org/t/twilio-plugin-configured-but-texts-never-go-beyond-pending/13320/1 "2020-03-10T20:58:00Z")

</div>

![Jim\_Blake] **@Jim\_Blake:** I have installed and configured the twilio plugin and configured my settings including my SID Token and Phone Number from twilio, then I added a segment with myself as a contact. Then I went to Channels and then Text Message and created a new text message and saved it.  
Then I created a campaign with the segment I created, as the source, and created an action to sent a text message and set it to immediate.

![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/6/6f5f29615d7d7cd2b9d8a1df45ffa36dc33130b1.png)

Then I saved and published the campaign, but the text never sends.  
I tried following these instructions but the messages never send  
[https://mautic.com/help/how-to-send-text-messages-twilio/](https://mautic.com/help/how-to-send-text-messages-twilio/)

> Mautic: How to Send Text Messages Using the Twilio Plugin - Mautic

The _ **messages just sit in pending state and never get to Twilio’s send queue** _. How do I troubleshoot / correct this?

---

<div class="post-metadata">

### Author: ![juicymediagroup](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/juicymediagroup/32/273_2.png) [@juicymediagroup](https://forum.mautic.org/u/juicymediagroup)
#### Post date: [February 7, 2021, 6:31am UTC](https://forum.mautic.org/t/twilio-plugin-configured-but-texts-never-go-beyond-pending/13320/2 "2021-02-07T06:31:08Z")

</div>

Did you ever get any help on this? I’m having the same problem.

---

<div class="post-metadata">

### Author: ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)
#### Post date: [February 7, 2021, 2:27pm UTC](https://forum.mautic.org/t/twilio-plugin-configured-but-texts-never-go-beyond-pending/13320/3 "2021-02-07T14:27:08Z")

</div>

Hi there

Is Twillio an active/paid account or on trial mode ?

I have both SMS and WhatsApp working through Twillio.

Can you explain your setup

---

<div class="post-metadata">

### Author: ![juicymediagroup](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/juicymediagroup/32/273_2.png) [@juicymediagroup](https://forum.mautic.org/u/juicymediagroup)
#### Post date: [February 7, 2021, 5:04pm UTC](https://forum.mautic.org/t/twilio-plugin-configured-but-texts-never-go-beyond-pending/13320/4 "2021-02-07T17:04:55Z")

</div>

Hi Mike,

My setup is exactly the same as the original poster. The campaign is stuck in pending, not texts were sent. [Twilio Plugin Configured But Texts Never Go Beyond Pending](https://forum.mautic.org/t/twilio-plugin-configured-but-texts-never-go-beyond-pending/13320)

---

<div class="post-metadata">

### Author: ![juicymediagroup](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/juicymediagroup/32/273_2.png) [@juicymediagroup](https://forum.mautic.org/u/juicymediagroup)
#### Post date: [February 7, 2021, 5:05pm UTC](https://forum.mautic.org/t/twilio-plugin-configured-but-texts-never-go-beyond-pending/13320/5 "2021-02-07T17:05:27Z")

</div>

It’s a paid, active account.

---

<div class="post-metadata">

### Author: ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)
#### Post date: [February 7, 2021, 5:31pm UTC](https://forum.mautic.org/t/twilio-plugin-configured-but-texts-never-go-beyond-pending/13320/6 "2021-02-07T17:31:37Z")

</div>

are you seeing anything from the mautic system logs, if you go to the cog on the right, click System Info, then logs. Try and run the campaign first,

Next if you are seeing anything in the mautic.error logs on the server.

Are you testing with a user that has already gone through the campaign ? If so try and clone the campaign and rerun.

If you can put some screenshots of the segment, the campaign steps and text message as well as the configuration of the plugin that might help

---

<div class="post-metadata">

### Author: ![juicymediagroup](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/juicymediagroup/32/273_2.png) [@juicymediagroup](https://forum.mautic.org/u/juicymediagroup)
#### Post date: [February 7, 2021, 5:58pm UTC](https://forum.mautic.org/t/twilio-plugin-configured-but-texts-never-go-beyond-pending/13320/7 "2021-02-07T17:58:30Z")

</div>

Thank you so much for your help. I am the only contact. I created a segment and added myself to it. This is a new installation of Mautic. The campaign never ran, it’s been in pending status since I created it yesterday.

These are some of the errors I’m seeing in the log.

[2021-02-07 01:39:54] mautic.NOTICE: PHP Notice - Undefined index: show\_php\_version\_warning\_if\_under - in file /home/quintessential/public\_html/mautic/app/bundles/CoreBundle/Release/Metadata.php - at line 82 {“metadata”:{“version”:“3.1.0-rc”,“stability”:“rc”,“minimum\_php\_version”:“7.2.21”,“maximum\_php\_version”:“7.3.99”,“minimum\_mautic\_version”:“3.0.0-alpha”,“announcement\_url”:""}}

2021-02-07 01:40:02] mautic.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\TableNotFoundException: “An exception occurred while executing ‘SELECT COUNT(DISTINCT l.id) FROM sms\_message\_list\_xref sml INNER JOIN maump\_lead\_lists ll ON ll.id = sml.leadlist\_id and ll.is\_published = 1 INNER JOIN maump\_lead\_lists\_leads lll ON lll.leadlist\_id = sml.leadlist\_id and lll.manually\_removed = 0 INNER JOIN maump\_leads l ON lll.lead\_id = l.id WHERE (sml.sms\_id = ?) AND (((l.mobile IS NOT NULL) OR (l.mobile \<\> ‘’)) OR ((l.phone IS NOT NULL) OR (l.phone \<\> ‘’))) AND (NOT EXISTS (SELECT null FROM maump\_sms\_message\_stats stat WHERE (stat.lead\_id = l.id) AND (stat.sms\_id = 3))) AND (NOT EXISTS (SELECT null FROM maump\_lead\_donotcontact dnc WHERE (dnc.lead\_id = l.id) AND (dnc.channel = ‘sms’))) AND (NOT EXISTS (SELECT null FROM maump\_message\_queue mq WHERE (mq.lead\_id = l.id) AND (mq.status \<\> ‘sent’) AND (mq.channel = ‘sms’))) ORDER BY lll.lead\_id ASC’ with params [3]: Table ‘quintessential\_1.sms\_message\_list\_xref’ doesn’t exist” at /home/quintessential/public\_html/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 42 {“exception”:"[object] (Doctrine\DBAL\Exception\TableNotFoundException(code: 0): An exception occurred while executing ‘SELECT COUNT(DISTINCT l.id) FROM sms\_message\_list\_xref sml INNER JOIN maump\_lead\_lists ll ON ll.id = sml.leadlist\_id and ll.is\_published = 1 INNER JOIN maump\_lead\_lists\_leads lll ON lll.leadlist\_id = sml.leadlist\_id and lll.manually\_removed = 0 INNER JOIN maump\_leads l ON lll.lead\_id = l.id WHERE (sml.sms\_id = ?) AND (((l.mobile IS NOT NULL) OR (l.mobile \<\> ‘’)) OR ((l.phone IS NOT NULL) OR (l.phone \<\> ‘’))) AND (NOT EXISTS (SELECT null FROM maump\_sms\_message\_stats stat WHERE (stat.lead\_id = l.id) AND (stat.sms\_id = 3))) AND (NOT EXISTS (SELECT null FROM maump\_lead\_donotcontact dnc WHERE (dnc.lead\_id = l.id) AND (dnc.channel = ‘sms’))) AND (NOT EXISTS (SELECT null FROM maump\_message\_queue mq WHERE (mq.lead\_id = l.id) AND (mq.status \<\> ‘sent’) AND (mq.channel = ‘sms’))) ORDER BY lll.lead\_id ASC’ with params [3]:\n\nTable ‘quintessential\_1.sms\_message\_list\_xref’ doesn’t exist at /home/quintessential/public\_html/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:42, Doctrine\DBAL\Driver\Mysqli\MysqliException(code: 0): Table ‘quintessential\_1.sms\_message\_list\_xref’ doesn’t exist at /home/quintessential/public\_html/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/Mysqli/MysqliStatement.php:86)"}

---

<div class="post-metadata">

### Author: ![juicymediagroup](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/juicymediagroup/32/273_2.png) [@juicymediagroup](https://forum.mautic.org/u/juicymediagroup)
#### Post date: [February 7, 2021, 6:10pm UTC](https://forum.mautic.org/t/twilio-plugin-configured-but-texts-never-go-beyond-pending/13320/8 "2021-02-07T18:10:00Z")

</div>

This is my setup for the campaign

 ![FireShot Capture 781 - Campaigns - Send Text Messages - Mautic - quintessentiallifestyles.com](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/1/16305ff92dba8a90b42c6703f29e692ef7fea408.png) ![FireShot Capture 784 - Campaigns - Send Text Messages - Mautic - quintessentiallifestyles.com](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/4/41f6b6b8b8d71201d5d4e77a45acff85cbb1494d.png) ![FireShot Capture 787 - Campaigns - Send Text Messages - Mautic - quintessentiallifestyles.com](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/4/4ecca49f1a72d20b41eedbc264b50b7a4349dbd2.png) ![FireShot Capture 778 - Campaigns - Send Text Messages - Mautic - quintessentiallifestyles.com](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/a/a8d58c83b973237c0c78d59ea4fa702f10651bfe.png)

---

<div class="post-metadata">

### Author: ![juicymediagroup](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/juicymediagroup/32/273_2.png) [@juicymediagroup](https://forum.mautic.org/u/juicymediagroup)
#### Post date: [February 7, 2021, 6:11pm UTC](https://forum.mautic.org/t/twilio-plugin-configured-but-texts-never-go-beyond-pending/13320/9 "2021-02-07T18:11:09Z")

</div>

Twilio plugin is published, everything is set up according the documentation. My emails go out fine, just NOT the texts.

---

<div class="post-metadata">

### Author: ![131events](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/131events/32/4104_2.png) [@131events](https://forum.mautic.org/u/131events)
#### Post date: [February 17, 2021, 10:54pm UTC](https://forum.mautic.org/t/twilio-plugin-configured-but-texts-never-go-beyond-pending/13320/10 "2021-02-17T22:54:54Z")

</div>

This is the same error I have been trying to track down:

AND (mq.channel = ‘sms’))) ORDER BY lll.lead\_id ASC’ with params [3]:\n\nTable ‘quintessential\_1.sms\_message\_list\_xref’ doesn’t exist at

The . instead of an \_ before this table name throws the error. I’ve rebuilt db with doctrine, but no one seems to be able to answer this issue.

I just launched a brand new mautic instance - installed ONLY the Twilio configuration and I still get this error.

Anyone?

---

<div class="post-metadata">

### Author: ![jphelan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jphelan/32/8003_2.png) [@jphelan](https://forum.mautic.org/u/jphelan)
#### Post date: [July 27, 2022, 9:16pm UTC](https://forum.mautic.org/t/twilio-plugin-configured-but-texts-never-go-beyond-pending/13320/11 "2022-07-27T21:16:03Z")

</div>

I’m having a similar issue. SMS send if it’s set up through a campaign, but if I try to do it as a direct segment send it never goes beyond pending.

 ![Screen Shot 2022-07-27 at 4.10.04 PM](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/9/9258a35ae591740c9ada59b8db3db06b4ae6c272.png)

Here’s what I see if I run the command myself.

```auto
$ php bin/console mautic:broadcasts:send
+--------------------+--------+----------+
| Channel | # sent | # failed |
+--------------------+--------+----------+
| Text Message: Test | 0 | 0 |
+--------------------+--------+----------+

```

---

<div class="post-metadata">

### Author: ![siteleas](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/siteleas/32/1047_2.png) [@siteleas](https://forum.mautic.org/u/siteleas)
#### Post date: [June 14, 2026, 2:20pm UTC](https://forum.mautic.org/t/twilio-plugin-configured-but-texts-never-go-beyond-pending/13320/12 "2026-06-14T14:20:37Z")

</div>

So, I have installed the Twilio plugin and setup a campaign to send an email to my inbox and a text message on form submission. When I put in my phone number in the Mautic form phone number field the text comes to my phone. But, when my clients put their phone number in the phone number field it tries to send to their phone number. In some setups, this might be fine, but in this case I want to be able to determine where the text messages go to (For this campaign, I want all text messages to go to my cell phone for replying back about customer price quote requests). How do I fix this setup either in Mautic or Twilio? Anyone know?
