Amazon SNS-更改发件人ID [英] Amazon SNS -- Change Sender ID

查看:136
本文介绍了Amazon SNS-更改发件人ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Amazon SNS服务将SMS发送到几个号码.我有一个cronjob,每天运行一次,应该发送SMS到那一刻到期的电话号码.

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.

现在我对SNS有几个疑问.

Now I have a couple of question regarding SNS.

  1. 我是否在每次运行cronjob时创建一个主题,对其进行订阅,将其发送,然后将其删除?还是我只是在控制台中创建一个主题,然后我就订阅号码,发送消息并在发送后再次取消订阅号码?

  1. 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?

此外,我尝试了一些简单的操作,即提供ARN并发送一条内容为"Hello World!"的消息.在我的手机上收到的消息来自"NOTICE",内容如下:

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>世界您好!

现在我有两个问题:

  • FPREMINDER是我的主题的显示名称.但是为什么它包含在消息中?

  • FPREMINDER is my display name of my topic. But why is it included in the messsage?

如果有人回复,如何将"NOTICE"更改为自定义名称和自定义编号?

And how can I change the "NOTICE" to a custom name and a custom number in case somebody replies?

感谢您的帮助!

推荐答案

如果您一直向同一组收件人发送邮件,那么逻辑过程将是定义一次主题,添加订户,然后简单地发送邮件每天讨论这个话题.

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.

如果您希望维护自己的订户列表,以便人们在一整天都可以添加/删除自己,那么请使用Amazon SNS的功能,这些功能使您可以直接发送SMS消息,而无需通过订阅.

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.

设置SMS消息传递首选项:

对于默认发件人ID ,键入一个自定义ID,该ID最多包含11个字母数字字符,包括至少一个字母,没有空格.发件人ID在接收设备上显示为消息发件人.例如,您可以使用您的企业品牌来使消息源更易于识别.

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.

对发件人ID的支持因国家/地区而异.例如,传递给美国电话号码的消息将不会显示发件人ID.有关支持发件人ID的国家/地区,请参阅支持的地区和国家/地区.

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.

如果您未指定发件人ID,则该消息将在受支持的国家/地区显示长代码作为发件人ID.对于需要按字母顺序排列的发件人ID的国家/地区,消息会显示NOTICE作为发件人ID.

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.

发送SMS消息:

发送消息时,可以控制消息是针对成本还是可靠传递进行了优化,并且可以指定发件人ID. ...

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

一个自定义ID,最多包含11个字母数字字符,包括至少一个字母,没有空格.发件人ID在接收设备上显示为消息发件人.例如,您可以使用您的企业品牌来使消息源更易于识别.

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.

对发件人ID的支持因国家/地区而异.例如,传递给美国电话号码的消息将不会显示发件人ID.有关支持发件人ID的国家/地区,请参见受支持的地区和国家/地区.

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.

如果您未指定发件人ID,则该消息将在受支持的国家/地区显示长代码作为发件人ID.对于需要按字母顺序排列的发件人ID的国家/地区,消息会显示 NOTICE 作为发件人ID.

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.

此消息级属性会覆盖您使用SetSMSAttributes请求设置的帐户级属性DefaultSenderID.

This message-level attribute overrides the account-level attribute DefaultSenderID, which you set by using the SetSMSAttributes request.

这篇关于Amazon SNS-更改发件人ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆