---slug: /guides/messaging/forwarding-messagessidebar_position: 1x-custom: author: danieleds---# Forwarding MessagesForwarding 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 binLets write an XML bin which will forward messages. We will host this one onSignalWire 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 theBins tab.XML bins tab of the LaML sectionCreate 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>](pathname:///compatibility-api/xml/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/xml/index.mdx).## Configuring your numberThe last step is connecting a number to the bin. If you dont have a phonenumber yet, make sure to [buyone](guides/numbers-api/getting-started/buying-a-phone-number/index.mdx). Youwill need at least one number to receive messages.Refer to the same section in [Receiving your firstSMS](../receiving-your-first-sms/index.mdx#configuring-your-number) for in-depthinstructions on how to assign the XML bin to one of your phone numbers.:::info Ensuring message deliveryIf you are sending messages to the US from a 10DLC number — including forwarding messages — you _must_ registeryour traffic with the Campaign Registry. Otherwise, the carriers will notdeliver your messages. Please see [**Campaign Registry - Everything You Need ToKnow**](../../getting-started/campaign-registry/campaign-registry-all-you-need-to-know.mdx) for more information.:::## Wrap upWe 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).