Change Sender ID

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!


    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 US 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 US 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 the SetSMSAttributes request.

    链接地址: http://www.djcxy.com/p/5532.html

    上一篇: SNE getEndpointAttributes在EventEndpointUpdated事件后返回旧数据

    下一篇: 更改发件人ID