简体   繁体   English

如何使用流星发送文本?

[英]How to send a Text with Meteor?

I need to send SMS / text from my Meteor app. 我需要从Meteor应用发送短信/短信。

From atmosphere.js, I did find the presto:zenvia package , but based on the sample code at that link, it seems it's necessary to first have a zenvia account (must supply username and password), which isn't necessarily a big deal, but the documentation is in a language I do not know (Italian?). 从大气.js中,我确实找到了presto:zenvia软件包 ,但是根据该链接处的示例代码,似乎有必要首先拥有一个zenvia帐户(必须提供用户名和密码),这不一定有什么大不了的,但文档使用的是我不知道的语言(意大利语?)。

Again, maybe not such a big deal, as Chrome did offer to translate it, and seemed to do pretty good. 再说一次,也许没什么大不了的,因为Chrome确实提供了翻译服务,而且看起来还不错。

However, the most concerning thing is that, according to the history of the project, it is version 0.0.4 and last updated Jun 29, 2015 - several months ago. 但是,最令人担心的是,根据项目的历史记录,它是0.0.4版,最后更新时间为2015年6月29日-几个月前。

Is anyone aware of either a more mature package for sending SMS / texts with Meteor, or more comprehensive samples of just how to use presto:zenvia? 是否有人知道使用流星发送短信/文本的更成熟的程序包,或者更完整的样例如何使用presto:zenvia?

abhiaiyer:meteor-twilioabhiaiyer:meteor-twilio软件包,它使您可以加入Twilio服务。

Just wanted to point you down another route I was aware that cell companies generally have a text messaging email service there is more detail at Sending SMS to mobile phones via JavaScript 我只是想指出您的另一条路线,我知道手机公司通常会提供短信电子邮件服务,有关通过JavaScript将短信发送到手机的详细信息

but the important bit is as follows 但重要的一点如下

Cellular carriers assign email addresses to their phone numbers and support SMS by email. 蜂窝运营商将电子邮件地址分配给其电话号码,并通过电子邮件支持SMS。

So if you can email, you can text. 因此,如果您可以发送电子邮件,则可以发送短信。

format : (subscriber 10 digit number) @sms_providerdomain.xxx 格式:(用户10位数字) @sms_providerdomain.xxx

Alltel @message.alltel.com AT&T @txt.att.net Nextel @messaging.nextel.com Sprint @messaging.sprintpcs.com SunCom @tms.suncom.com T-mobile @tmomail.net VoiceStream @voicestream.net Verizon @vtext.com (text only) @vzwpix.com (pictures and videos) Alltel @message.alltel.com AT&T @ txt.att.net Nextel @messaging.nextel.com Sprint @messaging.sprintpcs.com SunCom @tms.suncom.com T-mobile @tmomail.net VoiceStream @voicestream.net Verizon @vtext.com (仅文字) @vzwpix.com (图片和视频)

as stated by capdragon in 2010 I don't know if this has been updated or changed but I would assume it still holds true today. 正如capdragon在2010年所说,我不知道它是否已更新或更改,但我认为它在今天仍然适用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM