# How to integrate Twilio with mautic

**URL:** https://forum.mautic.org/t/how-to-integrate-twilio-with-mautic/6439
**Category:** General Discussion
**Created:** [November 4, 2016, 12:15pm UTC](https://forum.mautic.org/t/how-to-integrate-twilio-with-mautic/6439 "2016-11-04T12:15:19Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![elisabet111](https://avatars.discourse-cdn.com/v4/letter/e/e19adc/32.png) [@elisabet111](https://forum.mautic.org/u/elisabet111)
#### Post date: [November 4, 2016, 12:15pm UTC](https://forum.mautic.org/t/how-to-integrate-twilio-with-mautic/6439/1 "2016-11-04T12:15:19Z")

</div>

Good Morning,  
  
I wanted to know how to integrate Twilio with mautic  
  
How I can schedule messages to users mautic with Twilio to verify that the numbers are correct?  
  
  
Thank you very much

---

<div class="post-metadata">

### Author: ![elisabet111](https://avatars.discourse-cdn.com/v4/letter/e/e19adc/32.png) [@elisabet111](https://forum.mautic.org/u/elisabet111)
#### Post date: [November 4, 2016, 12:15pm UTC](https://forum.mautic.org/t/how-to-integrate-twilio-with-mautic/6439/2 "2016-11-04T12:15:19Z")

</div>

Good Morning,

I wanted to know how to integrate Twilio with mautic

How I can schedule messages to users mautic with Twilio to verify that the numbers are correct?

Thank you very much

---

<div class="post-metadata">

### Author: ![bizcrony](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bizcrony/32/409_2.png) [@bizcrony](https://forum.mautic.org/u/bizcrony)
#### Post date: [April 13, 2017, 8:06am UTC](https://forum.mautic.org/t/how-to-integrate-twilio-with-mautic/6439/3 "2017-04-13T08:06:11Z")

</div>

Before you start to send SMS from your Mautic, it needs to be connected to the service which can send them. The first and default implemented service is Twilio. In order to configure the Text Messages correctly, follow these steps:

Create an account at [Twilio.com](http://Twilio.com).  
Go to Account Settings. There you’ll see the API Credentials.  
Open the Mautic Configuration in another browser tab and navigate to: Cog icon \> Configuration \> Text Message Settings.  
Copy the AccountSID from Twilio account and paste it to Text Message Provider Username field in Mautic.  
Unlock and copy the AuthToken and paste it to Text Message Provider Password field in Mautic.  
Go to Products \> Phone Numbers in Twilio, copy the number and paste it to the Sending Phone Number field in Mautic.  
Select the Text Message Enabled? switch to Yes and save the Mautic configuration.

Let me know if it is helpful for you 🙂

---

<div class="post-metadata">

### Author: ![samvil](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@samvil](https://forum.mautic.org/u/samvil)
#### Post date: [May 17, 2017, 11:11pm UTC](https://forum.mautic.org/t/how-to-integrate-twilio-with-mautic/6439/4 "2017-05-17T23:11:02Z")

</div>

Hi @bizcrony . I’m new to Mautic and am setting it all up. I followed your instructions, but I don’t believe it’s connecting. ☹

I assume you’ll know it’s connected when the grayscale Twilio logo changes to colored, correct?

---

<div class="post-metadata">

### Author: ![bizcrony](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bizcrony/32/409_2.png) [@bizcrony](https://forum.mautic.org/u/bizcrony)
#### Post date: [May 18, 2017, 8:04am UTC](https://forum.mautic.org/t/how-to-integrate-twilio-with-mautic/6439/5 "2017-05-18T08:04:20Z")

</div>

let me know and you can reach me at my sk…pe - kishankumawat at live com , to resolve your issue.

---

<div class="post-metadata">

### Author: ![samvil](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@samvil](https://forum.mautic.org/u/samvil)
#### Post date: [May 24, 2017, 8:07pm UTC](https://forum.mautic.org/t/how-to-integrate-twilio-with-mautic/6439/6 "2017-05-24T20:07:23Z")

</div>

Hi @bizcrony. My apologies for just now responding. I didn’t realize you had responded. Well, I thought I had made some progress (my Twilio log is in color now, so I figured it successfully connected. However, that may not be the case, because I created my first test campaign (Actions = Send Email + Send Text Message). When I saved the campaign, I received a 500 Internal Server Error. I went to my system info log and this is what I read. Unfortunately, I’m not a programmer, so I don’t know what this means and am stuck at this point. ☹

[2017-05-24 13:41:38] mautic.CRITICAL: Uncaught PHP Exception DoctrineDBALExceptionTableNotFoundException: “An exception occurred while executing ‘SELECT o.event\_id, count(o.lead\_id) as lead\_count, o.non\_action\_path\_taken FROM mautg\_campaign\_lead\_event\_log o INNER JOIN mautg\_campaign\_leads l ON l.campaign\_id = 1 and l.manually\_removed = 0 and o.lead\_id = l.lead\_id and l.rotation = o.rotation WHERE (o.campaign\_id = 1) AND (NOT EXISTS (SELECT null FROM mautg\_campaign\_lead\_event\_failed\_log fe WHERE fe.log\_id = o.id)) GROUP BY o.event\_id, o.non\_action\_path\_taken’: Table ‘domainna\_maut893.mautg\_campaign\_lead\_event\_failed\_log’ doesn’t exist” at /home/domainna/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 53 {“exception”:"[object] (Doctrine\DBAL\Exception\TableNotFoundException(code: 0): An exception occurred while executing ‘SELECT o.event\_id, count(o.lead\_id) as lead\_count, o.non\_action\_path\_taken FROM mautg\_campaign\_lead\_event\_log o INNER JOIN mautg\_campaign\_leads l ON l.campaign\_id = 1 and l.manually\_removed = 0 and o.lead\_id = l.lead\_id and l.rotation = o.rotation WHERE (o.campaign\_id = 1) AND (NOT EXISTS (SELECT null FROM mautg\_campaign\_lead\_event\_failed\_log fe WHERE fe.log\_id = o.id)) GROUP BY o.event\_id, o.non\_action\_path\_taken’:nnTable ‘domainna\_maut893.mautg\_campaign\_lead\_event\_failed\_log’ doesn’t exist at /home/domainna/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:53, Doctrine\DBAL\Driver\Mysqli\MysqliException(code: 0): Table ‘domainna\_maut893.mautg\_campaign\_lead\_event\_failed\_log’ doesn’t exist at /home/domainna/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/Mysqli/MysqliStatement.php:94)"} []

---

<div class="post-metadata">

### Author: ![bizcrony](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bizcrony/32/409_2.png) [@bizcrony](https://forum.mautic.org/u/bizcrony)
#### Post date: [May 25, 2017, 4:33am UTC](https://forum.mautic.org/t/how-to-integrate-twilio-with-mautic/6439/7 "2017-05-25T04:33:03Z")

</div>

@samvil you can connect me for better help … is your server PHP version is updated ?
