How to forward SMS messages with Tasker
First, make sure you have the Tasker app installed on your Android device.
Open Tasker and tap the "+" button to create a new profile.
Tap "Event" and then select "Phone" from the list of event categories.
Select "Received SMS" as the trigger for the profile.
Tap the "New Task" button to create a new task for the profile.
Give the task a name, such as "Forward SMS."
Tap the "+" button to add a new action to the task.
Select "Phone" from the list of action categories and then choose "Send SMS" as the action.
In the "Send SMS" action settings, enter the phone number to which you want to forward the SMS.
Tap the "Variable" button next to the "Message" field and select "SMS Body" as the variable. This will automatically insert the body of the received SMS as the message to be forwarded.
Tap the "Back" button to save the task and return to the profile.
Tap the "Done" button to save the profile and activate it.
With this Tasker profile set up, any SMS you receive will be automatically forwarded to the specified phone number. You can customize the profile further by adding additional conditions or actions, such as only forwarding SMS from certain numbers or adding a delay before forwarding the SMS.