How to integrate Twilio with mautic


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

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

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.
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 :slight_smile:

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. :frowning:

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

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

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. :frowning:

[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)"} []

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