Re: [android-developers] Re: Send an SMS message to an email?

2011-01-25 Thread xiaoxiong weng
does work on some carrier like mine.
It depends on if your carrier has a gateway, mine for example is
16477712...@msg.wind.ca

String number = j...@edispatches.com;
 String st = testing;
sm.sendTextMessage(number, null, st, null, null);

On Mon, Jan 24, 2011 at 9:51 PM, Kostya Vasilyev kmans...@gmail.com wrote:

 AFAIK, this is typically implemented within the cellular network's smarts
 along with other services (like voicemail, or SMS messages about missed
 calls).

 Doing this in an application seems possible, but difficult, as you'll need
 to implement your own email messaging back-end, possibly including your own
 mail servers.

 -- Kostya

 25.01.2011 1:47, JAlexoid (Aleksandr Panzin) пишет:

  I am pretty sure that SmsMessenger does not send emails. You use the
 Email client to do that.
 Read the error output from LogCat. If then you don't know what is the
 problem, post it here. Maybe someone will ridicule you for something
 or there is a genuine problem.

 On 24 янв, 23:12, Jonathan Jennej...@edispatches.com  wrote:

 anybody?

 On Jan 21, 12:23 pm, Jonathan Jennej...@edispatches.com  wrote:

  I'm trying to code an app that sends an SMS message to an email
 gateway. I know this is possible because I can send a message from my
 phone number to an email, and have it receive it properly. Also, I can
 reply to that email and my phone will get it as a text message. The
 problem I'm having is that when I code it this way... the message just
 never happens.
 My code in question is as follows:
 String number = j...@edispatches.com;
  String st = testing;
  sm.sendTextMessage(number, null, st, null, null);
 So, it should be sending testing to my email address... but it just
 seems to die when this method is called? Other operations within this
 method seem to be working as well.



 --
 Kostya Vasilyev -- WiFi Manager + pretty widget --
 http://kmansoft.wordpress.com


 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
littleb...@littlebearz.com
+1-647-771-2551 SMS Call 24/7

 This message and any attached documents contain information from the
 LittleBearZ that may be confidential and/or
 privileged. If you are not the intended recipient, you may not read,
 copy, distribute, or use this information. If you have received this
 transmission in error, please notify the sender immediately by reply
 e-mail and then delete this message.
I usually Reply within 24 Hours. Keyword: *usually*

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Send an SMS message to an email?

2011-01-25 Thread Jonathan Jenne
Right, this is why I figured it should be so easy! On any regular cell
phone that I'm aware of, you can send text messages to an email
address... and that's exactly what I'm trying to do here. In fact, the
company I work for, most of our communication between customers and
our server happens in this way. Customers send a text-message to an
email address of ours using their cell phones, and that will update
something on our end on their behalf. Then, we send them a message
back from our email to their phonenumber@carrier. This method has
worked for us for the last 6 years, and has many benefits for us.

We're developing an app that will basically make this communication
easier for the user... but apparently it can't be done short of re-
writing an entire SMS/Email messaging back-end? That doesn't seem
worth it at all.

If we wanted to interact with our customer in another way, it's sort
of a hassle. We can do this through the web, but it would be visiting
an ugly website like 
www.ourwebsite.com/admin/androidapp.php?usrnum=phonenumbercommand
 ... Which is fine, but we don't want the website to be visible when
this happens, and I can't seem to find a way to call the web-browser
in the background, then have it die nicely once the site is loaded.

Do you guys have any suggestions? Is this possible, or are we stuck
having to re-write parts of our website back-end along with parts of
our security procedures to accommodate a different method of
communication ?

On Jan 25, 12:51 am, Kostya Vasilyev kmans...@gmail.com wrote:
 AFAIK, this is typically implemented within the cellular network's
 smarts along with other services (like voicemail, or SMS messages
 about missed calls).

 Doing this in an application seems possible, but difficult, as you'll
 need to implement your own email messaging back-end, possibly including
 your own mail servers.

 -- Kostya

 25.01.2011 1:47, JAlexoid (Aleksandr Panzin) пишет:



  I am pretty sure that SmsMessenger does not send emails. You use the
  Email client to do that.
  Read the error output from LogCat. If then you don't know what is the
  problem, post it here. Maybe someone will ridicule you for something
  or there is a genuine problem.

  On 24 янв, 23:12, Jonathan Jennej...@edispatches.com  wrote:
  anybody?

  On Jan 21, 12:23 pm, Jonathan Jennej...@edispatches.com  wrote:

  I'm trying to code an app that sends an SMS message to an email
  gateway. I know this is possible because I can send a message from my
  phone number to an email, and have it receive it properly. Also, I can
  reply to that email and my phone will get it as a text message. The
  problem I'm having is that when I code it this way... the message just
  never happens.
  My code in question is as follows:
  String number = j...@edispatches.com;
    String st = testing;
                    sm.sendTextMessage(number, null, st, null, null);
  So, it should be sending testing to my email address... but it just
  seems to die when this method is called? Other operations within this
  method seem to be working as well.

 --
 Kostya Vasilyev -- WiFi Manager + pretty widget 
 --http://kmansoft.wordpress.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Send an SMS message to an email?

2011-01-25 Thread Jonathan Jenne
By the way, i checked in the logs and SmsMessenger is giving me
Invalid Destination Address

I think that's funny because like I said earlier this is entirely
possible to do, yet Android cannot do it? I'm trying to build for
version 1.6, was this something added in later versions?

On Jan 25, 11:29 am, xiaoxiong weng ad...@littlebearz.com wrote:
 does work on some carrier like mine.
 It depends on if your carrier has a gateway, mine for example is
 16477712...@msg.wind.ca

 String number = j...@edispatches.com;
  String st = testing;
                 sm.sendTextMessage(number, null, st, null, null);



 On Mon, Jan 24, 2011 at 9:51 PM, Kostya Vasilyev kmans...@gmail.com wrote:
  AFAIK, this is typically implemented within the cellular network's smarts
  along with other services (like voicemail, or SMS messages about missed
  calls).

  Doing this in an application seems possible, but difficult, as you'll need
  to implement your own email messaging back-end, possibly including your own
  mail servers.

  -- Kostya

  25.01.2011 1:47, JAlexoid (Aleksandr Panzin) пишет:

   I am pretty sure that SmsMessenger does not send emails. You use the
  Email client to do that.
  Read the error output from LogCat. If then you don't know what is the
  problem, post it here. Maybe someone will ridicule you for something
  or there is a genuine problem.

  On 24 янв, 23:12, Jonathan Jennej...@edispatches.com  wrote:

  anybody?

  On Jan 21, 12:23 pm, Jonathan Jennej...@edispatches.com  wrote:

   I'm trying to code an app that sends an SMS message to an email
  gateway. I know this is possible because I can send a message from my
  phone number to an email, and have it receive it properly. Also, I can
  reply to that email and my phone will get it as a text message. The
  problem I'm having is that when I code it this way... the message just
  never happens.
  My code in question is as follows:
  String number = j...@edispatches.com;
   String st = testing;
                   sm.sendTextMessage(number, null, st, null, null);
  So, it should be sending testing to my email address... but it just
  seems to die when this method is called? Other operations within this
  method seem to be working as well.

  --
  Kostya Vasilyev -- WiFi Manager + pretty widget --
 http://kmansoft.wordpress.com

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 littleb...@littlebearz.com
 +1-647-771-2551 SMS Call 24/7

  This message and any attached documents contain information from the
  LittleBearZ that may be confidential and/or
  privileged. If you are not the intended recipient, you may not read,
  copy, distribute, or use this information. If you have received this
  transmission in error, please notify the sender immediately by reply
  e-mail and then delete this message.

 I usually Reply within 24 Hours. Keyword: *usually*

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Send an SMS message to an email?

2011-01-25 Thread Kostya Vasilyev

25.01.2011 22:16, Jonathan Jenne пишет:

By the way, i checked in the logs and SmsMessenger is giving me
Invalid Destination Address

I think that's funny because like I said earlier this is entirely
possible to do, yet Android cannot do it? I'm trying to build for
version 1.6, was this something added in later versions?



AFAIK, those types of features are implemented within the carrier's 
network, and are independent of the particular phone make / model and 
its firmware.


Heck, you don't even need a phone for this to work - just get a 
contract, activate it, set up the service, and never insert the SIM it 
into the phone, and it should still work.


I'm using a service like this for incoming faxes with a CDMA operator: 
faxes sent to that phone number are received by the operator's back-end 
and are delivered to me over email, and the phone with that number is a 
spare I never even turn on.


Now, if you need this for one particular phone # (or just a few), then 
sure, you can build an application that listens for incoming SMS 
messages, and then does whatever it wants with them - including 
forwarding them over email.


This looks like a nice write-up that should help you get started:

http://mobiforge.com/developing/story/sms-messaging-android

--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com


--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Send an SMS message to an email?

2011-01-25 Thread JAlexoid (Aleksandr Panzin)
A) If you have a website, then you can use the HTTP Client to do the
interaction with your server and post all the messages you like (This
is the easy way a.k.a WebService)
B) If you need to only send the email to one single address, then just
send it over SMTP directly to that server. An SMTP server will accept
email where it is the final destination. (But you have to note, that
some ISPs block the 25th port on all SMTP hosts except their local
relay.)

On 25 янв, 21:13, Jonathan Jenne j...@edispatches.com wrote:
 Right, this is why I figured it should be so easy! On any regular cell
 phone that I'm aware of, you can send text messages to an email
 address... and that's exactly what I'm trying to do here. In fact, the
 company I work for, most of our communication between customers and
 our server happens in this way. Customers send a text-message to an
 email address of ours using their cell phones, and that will update
 something on our end on their behalf. Then, we send them a message
 back from our email to their phonenumber@carrier. This method has
 worked for us for the last 6 years, and has many benefits for us.

 We're developing an app that will basically make this communication
 easier for the user... but apparently it can't be done short of re-
 writing an entire SMS/Email messaging back-end? That doesn't seem
 worth it at all.

 If we wanted to interact with our customer in another way, it's sort
 of a hassle. We can do this through the web, but it would be visiting
 an ugly website 
 likewww.ourwebsite.com/admin/androidapp.php?usrnum=phonenumbercommand
  ... Which is fine, but we don't want the website to be visible when
 this happens, and I can't seem to find a way to call the web-browser
 in the background, then have it die nicely once the site is loaded.

 Do you guys have any suggestions? Is this possible, or are we stuck
 having to re-write parts of our website back-end along with parts of
 our security procedures to accommodate a different method of
 communication ?

 On Jan 25, 12:51 am, Kostya Vasilyev kmans...@gmail.com wrote:

  AFAIK, this is typically implemented within the cellular network's
  smarts along with other services (like voicemail, or SMS messages
  about missed calls).

  Doing this in an application seems possible, but difficult, as you'll
  need to implement your own email messaging back-end, possibly including
  your own mail servers.

  -- Kostya

  25.01.2011 1:47, JAlexoid (Aleksandr Panzin) пишет:

   I am pretty sure that SmsMessenger does not send emails. You use the
   Email client to do that.
   Read the error output from LogCat. If then you don't know what is the
   problem, post it here. Maybe someone will ridicule you for something
   or there is a genuine problem.

   On 24 янв, 23:12, Jonathan Jennej...@edispatches.com  wrote:
   anybody?

   On Jan 21, 12:23 pm, Jonathan Jennej...@edispatches.com  wrote:

   I'm trying to code an app that sends an SMS message to an email
   gateway. I know this is possible because I can send a message from my
   phone number to an email, and have it receive it properly. Also, I can
   reply to that email and my phone will get it as a text message. The
   problem I'm having is that when I code it this way... the message just
   never happens.
   My code in question is as follows:
   String number = j...@edispatches.com;
     String st = testing;
                     sm.sendTextMessage(number, null, st, null, null);
   So, it should be sending testing to my email address... but it just
   seems to die when this method is called? Other operations within this
   method seem to be working as well.

  --
  Kostya Vasilyev -- WiFi Manager + pretty widget 
  --http://kmansoft.wordpress.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Send an SMS message to an email?

2011-01-25 Thread Kostya Vasilyev
Whenever port 25 is blocked, port 587 is often left open and available for
submitting new messages.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com
26.01.2011 1:08 пользователь JAlexoid (Aleksandr Panzin) 
jalex...@gmail.com написал:

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Send an SMS message to an email?

2011-01-24 Thread Jonathan Jenne
anybody?

On Jan 21, 12:23 pm, Jonathan Jenne j...@edispatches.com wrote:
 I'm trying to code an app that sends an SMS message to an email
 gateway. I know this is possible because I can send a message from my
 phone number to an email, and have it receive it properly. Also, I can
 reply to that email and my phone will get it as a text message. The
 problem I'm having is that when I code it this way... the message just
 never happens.

 My code in question is as follows:

 String number = j...@edispatches.com;
  String st = testing;
                  sm.sendTextMessage(number, null, st, null, null);

 So, it should be sending testing to my email address... but it just
 seems to die when this method is called? Other operations within this
 method seem to be working as well.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Send an SMS message to an email?

2011-01-24 Thread JAlexoid (Aleksandr Panzin)
I am pretty sure that SmsMessenger does not send emails. You use the
Email client to do that.
Read the error output from LogCat. If then you don't know what is the
problem, post it here. Maybe someone will ridicule you for something
or there is a genuine problem.

On 24 янв, 23:12, Jonathan Jenne j...@edispatches.com wrote:
 anybody?

 On Jan 21, 12:23 pm, Jonathan Jenne j...@edispatches.com wrote:

  I'm trying to code an app that sends an SMS message to an email
  gateway. I know this is possible because I can send a message from my
  phone number to an email, and have it receive it properly. Also, I can
  reply to that email and my phone will get it as a text message. The
  problem I'm having is that when I code it this way... the message just
  never happens.

  My code in question is as follows:

  String number = j...@edispatches.com;
   String st = testing;
                   sm.sendTextMessage(number, null, st, null, null);

  So, it should be sending testing to my email address... but it just
  seems to die when this method is called? Other operations within this
  method seem to be working as well.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


RE: [android-developers] Re: Send an SMS message to an email?

2011-01-24 Thread Tommy
I agree, I think you have to use the email class for that and input the user 
phone number in the from box. Take a look at this link, see if it helps.

http://www.helloandroid.com/tutorials/how-send-email-your-application

-Original Message-
From: android-developers@googlegroups.com 
[mailto:android-developers@googlegroups.com] On Behalf Of JAlexoid (Aleksandr 
Panzin)
Sent: Monday, January 24, 2011 5:47 PM
To: Android Developers
Subject: [android-developers] Re: Send an SMS message to an email?

I am pretty sure that SmsMessenger does not send emails. You use the Email 
client to do that.
Read the error output from LogCat. If then you don't know what is the problem, 
post it here. Maybe someone will ridicule you for something or there is a 
genuine problem.

On 24 янв, 23:12, Jonathan Jenne j...@edispatches.com wrote:
 anybody?

 On Jan 21, 12:23 pm, Jonathan Jenne j...@edispatches.com wrote:

  I'm trying to code an app that sends an SMS message to an email 
  gateway. I know this is possible because I can send a message from 
  my phone number to an email, and have it receive it properly. Also, 
  I can reply to that email and my phone will get it as a text 
  message. The problem I'm having is that when I code it this way... 
  the message just never happens.

  My code in question is as follows:

  String number = j...@edispatches.com;
   String st = testing;
   sm.sendTextMessage(number, null, st, null, null);

  So, it should be sending testing to my email address... but it 
  just seems to die when this method is called? Other operations 
  within this method seem to be working as well.

--
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Send an SMS message to an email?

2011-01-24 Thread Kostya Vasilyev
AFAIK, this is typically implemented within the cellular network's 
smarts along with other services (like voicemail, or SMS messages 
about missed calls).


Doing this in an application seems possible, but difficult, as you'll 
need to implement your own email messaging back-end, possibly including 
your own mail servers.


-- Kostya

25.01.2011 1:47, JAlexoid (Aleksandr Panzin) пишет:

I am pretty sure that SmsMessenger does not send emails. You use the
Email client to do that.
Read the error output from LogCat. If then you don't know what is the
problem, post it here. Maybe someone will ridicule you for something
or there is a genuine problem.

On 24 янв, 23:12, Jonathan Jennej...@edispatches.com  wrote:

anybody?

On Jan 21, 12:23 pm, Jonathan Jennej...@edispatches.com  wrote:


I'm trying to code an app that sends an SMS message to an email
gateway. I know this is possible because I can send a message from my
phone number to an email, and have it receive it properly. Also, I can
reply to that email and my phone will get it as a text message. The
problem I'm having is that when I code it this way... the message just
never happens.
My code in question is as follows:
String number = j...@edispatches.com;
  String st = testing;
  sm.sendTextMessage(number, null, st, null, null);
So, it should be sending testing to my email address... but it just
seems to die when this method is called? Other operations within this
method seem to be working as well.



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en