# The SMS Campaign Component

You can use Twilio for Salesforce to send customized bulk SMS messages to all members of a campaign. Before you get started, you should recognize two important points:

* Anyone you send messages to as a part of a campaign [must have opted-in somehow to receive those messages](https://help.twilio.com/hc/en-us/articles/223134707-Industry-standards-for-opt-ins-for-US-short-codes).
* A Contact or Lead must have a **mobile phone number** on their record to receive a text message. Other phone numbers will not be used.

> \[!WARNING]
>
> Use of the SMS Campaign Component requires users to have access to the **Twilio Messaging** folder in order to display potential deliverability ratings. If a user does not have access to this folder and the reports it contains, the component will display an error.

## Video Tutorial

This short video will show you how to set up the SMS Campaign component using Lightning, but you can also [jump down to a step-by-step guide](#lightning-setup).

https://www.youtube.com/watch?v=4Y2hq1iEX90

## Lightning Setup

1. Navigate to one of your campaigns. In the top-right corner, click on the gear icon and then click on **Edit Page** :

   ![Salesforce setup menu with arrow pointing to Edit Page option.](https://docs-resources.prod.twilio.com/a0016b81008117b44e95bd0a9436b33528d589ec3affae11bbf46c79457ad38d.png)
2. In the sidebar of the Lightning editor, go to the **Custom — Managed** section, and grab the **Twilio — Bulk Message Builder** component and drag it onto the page layout:

   ![Salesforce campaign interface with SMS broadcasts and Twilio integration.](https://docs-resources.prod.twilio.com/2fc54d75323db979763e94e6a08155d95f3cc2727796cabd72bb61eaf1964dd6.png)
3. Click the **Save** button in the top-right corner.

> \[!WARNING]
>
> If you don't see any custom components, you probably need to enable MyDomain for your Salesforce organization. You can read more about enabling MyDomain in [Salesforce's documentation](https://help.salesforce.com/articleView?id=domain_name_overview.htm\&type=5).
