- product:messaging - sdk:compatibility # Forwarding Messages Forwarding incoming messages to a different number is not much different than whan we have seen for [receiving your first SMS](../receiving-your-first-sms/index.mdx). In fact, we are going to apply just a minor variation to the XML bin used, so make sure to [follow that guide first](../receiving-your-first-sms/index.mdx). ## Writing a message forwarding bin Lets write an XML bin which will forward messages. We will host this one on SignalWire so that you dont need to set up any infrastructure of your own. You can create and manage bins from the LaML section of your Dashboard under the Bins tab. Create a new bin, and use the following lines as content: xml You received a message from: {{From}} to SignalWire number: {{To}}. The message is: {{Body}} We used the [<Message>](/compatibility-api/cxml/messaging/message) verb to send the inbound message to a different number. Make sure to set the to parameter to the number you would like to forward to. In the body of the message we used {{From}}, {{To}}, and {{Body}}. These placeholders will get replaced with actual values at runtime. To learn more about the XML syntax, refer to our [Compatibility XML documentation](compatibility-api/cxml/index.mdx). ## Configuring your number The last step is connecting a number to the bin. If you dont have a phone number yet, make sure to [buy one](guides/numbers-api/getting-started/buying-a-phone-number/index.mdx). You will need at least one number to receive messages. Refer to the same section in [Receiving your first SMS](../receiving-your-first-sms/index.mdx#configuring-your-number) for in-depth instructions on how to assign the XML bin to one of your phone numbers. :::info Ensuring message delivery If you are sending messages to the US from a 10DLC number — including forwarding messages — you _must_ register your traffic with the Campaign Registry. Otherwise, the carriers will not deliver your messages. Please see [**Campaign Registry - Everything You Need To Know**](../../getting-started/campaign-registry/campaign-registry-all-you-need-to-know.mdx) for more information. ::: ## Wrap up We have seen an example of forwarding incoming messages to a different number using XML bins. If you would like to forward incoming texts to an email address instead of another phone number, please check out our Forwarding Texts to Email guides in [Python](guides/messaging-api/examples/python/text-to-email/index.mdx) or [Node.js](guides/messaging-api/examples/nodejs/forwarding-texts-to-email-nodejs/index.mdx).