Wednesday, August 11, 2010

[android-developers] Re: Sending email by Intent... not simply composing a message

On Aug 12, 2:13 am, DulcetTone <dulcett...@gmail.com> wrote:
> You're right... I misstated that.  I can send SMS messages using the
> SDK, but cannot send email.
> I find that incongruous, despite the fact that the email app in the
> open source contains some nicely crafted code to do just that.

Why do you find it incongruous?

For sending SMS:
Your device actually DOES NOT send the SMS to the other party. It
sends to a server (known as SMSC). Then the server pushes the SMS to
the other party.
Now, who runs SMSC and how is your phone aware of it? The answer is
simple (and obvious) --- the mobile operator runs the server for you.
And, they have the SMSC number stored in the SIM card you entered in
the phone. So, to send an SMS, you do not need to have anything extra,
your phone subscription plan comes with built in SMS service (i.e.
address and permission to use SMS server). So, there is an SmsManager
in Android and you can send SMS through without any need to know how
it is being sent to the other party.

For sending Email:
The sending of email is different. Email sending also requires a
server (SMTP server). But, when you subscribe to a phone plan, you do
not get built in email service. Secondly, when you buy a SIM, you have
a fixed number. But, incase of email, you have the liberty to create
hundreds of email accounts, the SMTP server of different email
provider will be different. Some even don't give the permission to use
SMTP server (offer only web based service). Unlike 'SmsManager", there
is no such EmailManager --- because there is no fixed email account
for you and no fixed SMTP server to send email through.

Fortunately, if you know what your email is(!), what your SMTP server
address is, whether you are allowed to send email via that --- then
you can write up a simple EmailManager for Android.
This may shed some light on that issue (if you want to send email
using gmail)
http://davanum.wordpress.com/2007/12/22/android-send-email-via-gmail-actually-via-smtp/


Regards
Sarwar Erfan


>
> Is every app that is to send mail to reinvent a very intricate, heavy
> wheel?  I guess I have a feature request to line up.
>
> tone
>
> On Aug 11, 2:42 pm, Mark Murphy <mmur...@commonsware.com> wrote:
>
>
>
>
>
>
>
> > Well, SMS-by-Intent does not cause it to be sent, either. If you are
> > looking for an analogue to SmsManager for sending emails, there is
> > none -- sorry!

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate