Reputation: 117
$args = array(
"SenderID" => "SenderName",
"AWS.SNS.SMS.SMSType" => "Transactional",
"Message" => "Testing",
'PhoneNumber' => '+91xxxxxxxxx',
);
When I try to send sms using the extension everything works fine.
But when i remove the extension no error pops up and i dont receive the message.
Mobile Number = +919876543210
where +91 is the extension followed by the mobile number.
Thanks in Advance.
Upvotes: 3
Views: 684
Reputation: 3259
That extension part you are referring to, is mandatory.
AWS SNS SMS follows E.164 format.
you can read more here
From above link:
When you send an SMS message, specify the phone number using the E.164 format. E.164 is a standard for the phone number structure used for international telecommunication. Phone numbers that follow this format can have a maximum of 15 digits, and they are prefixed with the plus character (+) and the country code. For example, a U.S. phone number in E.164 format would appear as +1XXX5550100.
HIH
Upvotes: 2