I want to use Amazon SNS Services to send SMS to a couple of numbers. I have a cronjob that's running once a day and should send a SMS to the numbers which are due in that moment.
Now I have a couple of question regarding SNS.
Do I create a topic with each run of my cronjob, subscribe the numbers to it, send it, and delete it? Or do I just create a topic in the console and then I just subscribe the numbers, send the message and unsubscribe the numbers again after sending?
Further I tried something simple with suppling my ARN and send a message with the content's "Hello World!". The message which was received on my cell was coming from "NOTICE" and had the contents:
FPREMINDER> Hello World!
Now I have two questions:
FPREMINDER is my display name of my topic. But why is it included in the messsage?
And how can I change the "NOTICE" to a custom name and a custom number in case somebody replies?
Thanks for any help!
Sign in to the Amazon SNS console . On the navigation panel, choose Mobile, Text messaging (SMS). On the Mobile text messaging (SMS) page, in the Text messaging preferences section, choose Edit . For Default sender ID , enter the provided sender ID to be used as the default for all messages from your account.
Now you can use Amazon SNS to send SMS messages with your sender ID. SMS recipients in supported countries will see your sender ID as the message sender on their devices. If a different sender ID is used when publishing messages, it will override the default ID configured here.
When using the shared set, Amazon SNS attempts to use the same number when sending messages to a specific destination phone number. This is called "Sticky Sender ID". However, depending on various factors like network conditions and throughput available, a different number may be used.
A sender ID provides SMS recipients with more information about the sender than a phone number, long code, or short code provides. AWS prohibits SMS SMS spoofing, where the sender ID is used to impersonate another person, company, or product.
If you are consistently sending messages to the same set of recipients, then the logical process would be to define the topic once, add subscribers and then simply send the message to the topic each day.
If you wish to maintain your own list of subscribers, where people can add/remove themselves throughout the day, then use the features of Amazon SNS that let you send SMS messages directly, without going via a subscription.
From Setting SMS Messaging Preferences:
For Default sender ID, type a custom ID that contains up to 11 alphanumeric characters, including at least one letter and no spaces. The sender ID is displayed as the message sender on the receiving device. For example, you can use your business brand to make the message source easier to recognize.
Support for sender IDs varies by country. For example, messages delivered to U.S. phone numbers will not display the sender ID. For the countries that support sender IDs, see Supported Regions and Countries.
If you do not specify a sender ID, the message will display a long code as the sender ID in supported countries. For countries that require an alphabetic sender ID, the message displays NOTICE as the sender ID.
You can override the this setting when you send a message.
From Sending an SMS Message:
When you send a message, you can control whether the message is optimized for cost or reliable delivery, and you can specify a sender ID. ...
AWS.SNS.SMS.SenderID
A custom ID that contains up to 11 alphanumeric characters, including at least one letter and no spaces. The sender ID is displayed as the message sender on the receiving device. For example, you can use your business brand to make the message source easier to recognize.
Support for sender IDs varies by country. For example, messages delivered to U.S. phone numbers will not display the sender ID. For the countries that support sender IDs, see Supported Regions and Countries.
If you do not specify a sender ID, the message will display a long code as the sender ID in supported countries. For countries that require an alphabetic sender ID, the message displays NOTICE as the sender ID.
This message-level attribute overrides the account-level attribute
DefaultSenderID
, which you set by using theSetSMSAttributes
request.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With