What number format should I use to send an SMS message?
It’s recommended to use the international number format. Use a ‘+’ character and country prefix followed by the number, stripping a leading ‘0’. For example, the local Dutch number: 0711223344 would be formatted as: ‘+31711223344’.
If you are sending an SMS message to a specific application you can specify the destination port number in the ‘To’ address as well. The destination port number need to be separated from the phone number by a colon ‘:’. For example, to send an SMS message to the vCard application on mobile phone nr. ‘+31611223344’ use: ‘+31611223344:9204’.
In addition you can use a number of formatting characters that will be ignored: ‘ ‘ (space), ‘,’ (comma), ‘-‘ (hyphen), ‘(‘ and ‘)’ (open and close parentheses).