编程方式发送短信Android上使用Verizon的摩托罗拉Droid电子邮件 [英] Programatically send SMS to email using Verizon Motorola Droid on Android

查看:149
本文介绍了编程方式发送短信Android上使用Verizon的摩托罗拉Droid电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有人知道发送短信使用Verizon的CDMA摩托罗拉Droid手机的电子邮件地址的正确方法。

I was wondering if anyone knew the proper way to send an SMS message to an e-mail address using Verizon's CDMA Motorola Droid phone.

内部消息应用程序似乎自动地做到这一点。虽然像SMSPopup第三方应用程序似乎不能够正确回复的电子邮件地址,除非您撰写邮件应用程序内的信息。

The internal messaging application appears to automagically do this. While 3rd party applications like SMSPopup don't seem to be able to properly reply to e-mail addresses unless you compose the message inside the messaging application.

在内部邮件应用程序发送SMS消息有一个在logcat中对应的'RIL_REQUEST_CDMA_SEND_SMS 项(亚行logcat -b广播)。当您发送短信到一个电子邮件地址,它打印同样的事情,所以在幕后,它看起来好像是发送短信。有趣的是,如果你看一下内容提供商发件箱中的消息是针对不同的1270XX-XXX-XXXX号。

When the internal messaging application sends a SMS message there's a corresponding 'RIL_REQUEST_CDMA_SEND_SMS' entry in the logcat (adb logcat -b radio). When you send a SMS to an e-mail address it prints the same thing, so behind the scenes it looks as though it is sending an sms. The interesting thing is that if you look at the content provider sent box the messages are addressed to various 1270XX-XXX-XXXX numbers.

在其他的服务,您可以通过发送短信至predefined短SMS号码发送E-mail地址。然后格式化您的短信为EMAILADDRESS主题消息
即的http://en.wikipedia.org/wiki/SMS_gateway#Carrier-Provided_SMS_to_E-Mail_Gateways

On other services you can send e-mail addresses by sending a SMS to a predefined short sms number. And then formatting your SMS as emailaddress subject message i.e. http://en.wikipedia.org/wiki/SMS_gateway#Carrier-Provided_SMS_to_E-Mail_Gateways

例如,使用T-Mobile的号码(500)您可以在短信使用以下发送到电子邮件:

For example, using T-mobile's number (500) you can send a SMS to an e-mail using the following:

SmsManager smsMgr = SmsManager.getDefault();
smsMgr.sendTextMessage("500", null, "username@domain.com message sent to an e-mail address from a SMS", null, null);

有谁知道


  • 可以以编程方式发送短信从CDMA Android手机电子邮件?

  • Verizon公司是否实际发送您的答复是短信还是他们实际发送彩信或正常的HTTP电子邮件?

  • 有关如何截获什么被发送的原始信息,看看这是怎么回事?任何想法

这是Verizon公司莫名其妙地产生一个假数字暂居并列到e-mail地址(因为重复的消息不会被发送到同一个号码)这是可能的。但是,这似乎是pretty重手。

It might be possible that Verizon somehow generates a fake number temporarily tied to an e-mail address (since repeated messages are not sent to the same number). But, that seems pretty heavy handed.

谢谢!

推荐答案

我一直在寻找一种方式来发送使用SMS传送系统的短邮件,而不必知道服务中心的地址,特殊目的地和消息格式等

I have been looking for a way to send short emails using the SMS delivery system, and without having to know the service center address, special destinations and message formats etc.

由于戴夫指出,该股的短信应用程序可以做到这一点(与摩托罗拉Droid + Verizon和Attrix + AT&安培确认; T)。 GO短信转消息的电子邮件地址到MMS。然而,Handcent似乎要做到这一点恰到好处 - 从地址的电子邮件是电子邮件到SMS地址如2223334444@vtext.com。

As Dave points out, the stock text messaging app can do this (confirmed with Motorola Droid+Verizon and Attrix+AT&T). Go SMS turns messages to an email address into an MMS. Handcent however, seems to do this just right -- the email from address is the email-to-SMS address e.g. 2223334444@vtext.com.

这是为我工作的方法如下。这一切都是高度实验性的,完全没有证件。

The approach that has worked for me is as follows. This is all highly experimental and completely undocumented.


  • 直接写短信内容提供商(内容://短信),并插入出站邮件

  • Write directly to the SMS content provider ("content://sms") and insert the outbound message

ContentValues cv = new ContentValues();
cv.put("address", "someone@example.com");
String time = System.currentTimeMillis()+"";
cv.put("date", time);
cv.put("body", "I love stackoverflow");
cr.insert(uri, cv); // cr = ContentResolver
cv.put("type", "6");


  • 关键发现是类型= 6值1和2的传入和传出的短信(可以是其他方式)和3对草稿消息。 6是不能被发送的消息(empiricaly通过将手机飞行模式,并使用应用程序的股票发送文本到一个电子邮件地址确定)。

  • The key "discovery" is type = 6. Values 1 and 2 are for incoming and outgoing SMS (could be the other way around) and 3 is for draft messages. 6 is for messages that could not be sent (empiricaly determined by putting the phone in airplane mode and sending a text to an email address using the stock app).

    这一切都将邮件到短信存储。要实际发送,股票应用程序需要被捅成重试。我发现将手机设置为飞行模式和切换背出来的作品 - 发送邮件使用SMS到电子邮件!! - 但必须有一个更好的办法(?和Handcent知道它)

    All this places the message into the SMS store. To actually send it, the stock app needs to be poked into retrying. I find putting the phone into airplane mode and toggling back out works--the message is sent to email using SMS!!--but there must be a better way (and Handcent knows it?)

    和Verizon的哦似乎不喜欢它的邮件内容尖括号

    And oh Verizon doesn't seem to like angle brackets in its message content.

    我在试图以确定手机的发送一封电子邮件并查看从电子邮件地址 - 短信地址的应用实现了这个=nofollow的> http://bit.ly/J08Dyh

    I have implemented this in an app that tries to determine the phone's email-to-SMS address by sending out an email and looking at the from address: http://bit.ly/J08Dyh

    它没有被广泛尚未测试,所以我同样好奇。

    It's not been widely tested yet, so I am equally curious.

    PVS

    这篇关于编程方式发送短信Android上使用Verizon的摩托罗拉Droid电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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