[android-developers] Re: Send email in background

2010-04-09 Thread RMD
Just for anybody who comes across this link wondering the same thing,
this worked for me:

http://www.androidsnippets.org/snippets/166/

I only used a gmail account, but it worked.

Good luck.

On Apr 7, 8:32 am, RMD  wrote:
> Thanks for all the responses.  I was just getting the phone toemail
> me gps data about were my phone has been.  It might be easier to have
> it go to a web server and just log in to look at it.  I figured as
> much about the spam possibilities I suppose it was mostly,  "I wonder
> if I can...", knowing that I will burn up a few hours trying it see it
> work.
>
> thanks again,
> Robert
>
> On Apr 5, 9:39 am, RMD  wrote:
>
> > Is there and accepted way tosendanemailin thebackground?
>
> > RMD

-- 
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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Send email in background

2010-04-07 Thread RMD
Thanks for all the responses.  I was just getting the phone to email
me gps data about were my phone has been.  It might be easier to have
it go to a web server and just log in to look at it.  I figured as
much about the spam possibilities I suppose it was mostly,  "I wonder
if I can...", knowing that I will burn up a few hours trying it see it
work.

thanks again,
Robert

On Apr 5, 9:39 am, RMD  wrote:
> Is there and accepted way to send an email in the background?
>
> RMD

-- 
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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Send email in background

2010-04-06 Thread Bob Kerns
Actually, you CAN send email silently. You can send email from any
device capable of an outbound TCP connection on the SMTP port.

You can even send it as coming from the user's account. Or, you can
pretend to be Obama, or your favorite rock star.

You just can't get the built-in email application to do it for you,
but Java libraries and code examples are available.

And you may not be able to get the user's preferred mail server to do
it for you without access to his account credentials.

The only reason phones don't make good spam platforms is that there
are so many better ones out there, with better network connectivity.

You can forge fake emails manually, with no email software required,
just a telnet client.

There are some barriers in place these days, but since most email
traffic is spam, obviously the barriers aren't high enough.

On Apr 6, 6:25 am, Yahel  wrote:
> , for such a device a lack of this
>
> > functionality is unacceptable =(
>
> You do realise the splendid Spam platform they would have created if
> they allowed to send email programmatically without the user
> noticing ?
> 40 000 000 Android handsets in 2012 :D
>
> If you want to send email in the background, you could simply send to
> a webservice the content of your email  + attachments and let the
> server do the email sending.
>
> Yahel

-- 
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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Re: Send email in background

2010-04-06 Thread Mark Murphy
> If you want to send email in the background, you could simply send to
> a webservice the content of your email  + attachments and let the
> server do the email sending.

That certainly would be my recommendation, if the goal is just to send an
email.

If the goal is to send an email from the user's own account, then use
ACTION_SEND and don't do it in the background.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


-- 
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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Send email in background

2010-04-06 Thread Yahel
, for such a device a lack of this
> functionality is unacceptable =(

You do realise the splendid Spam platform they would have created if
they allowed to send email programmatically without the user
noticing ?
40 000 000 Android handsets in 2012 :D

If you want to send email in the background, you could simply send to
a webservice the content of your email  + attachments and let the
server do the email sending.

Yahel

-- 
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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Send email in background

2010-04-06 Thread Matias Alberto de la Vega
Really bad move not to allow developers to send email programatically
in the background, and not just that, you may also find annoying, as I
did, that you can only attach pictures to your emails =( I have a
nexus one and let me tell you, for such a device a lack of this
functionality is unacceptable =(

On Apr 5, 7:12 pm, RMD  wrote:
> Thanks!
>
> Robert
>
> On Apr 5, 11:38 am, Jiri  wrote:
>
>
>
> > See this:
>
> >http://groups.google.com/group/android-developers/browse_thread/threa...
>
> > Jiri
>
> > On 05/04/2010 15:58, Mark Murphy wrote:
>
> > >> Is there and accepted way to send an email in the background?
>
> > > You would need to integrate your own email client library (e.g.,
> > > JavaMail), as there is no way to send email in Android natively without
> > > user intervention.

-- 
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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Send email in background

2010-04-05 Thread RMD
Thanks!


Robert

On Apr 5, 11:38 am, Jiri  wrote:
> See this:
>
> http://groups.google.com/group/android-developers/browse_thread/threa...
>
> Jiri
>
> On 05/04/2010 15:58, Mark Murphy wrote:
>
>
>
> >> Is there and accepted way to send an email in the background?
>
> > You would need to integrate your own email client library (e.g.,
> > JavaMail), as there is no way to send email in Android natively without
> > user intervention.

-- 
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

To unsubscribe, reply using "remove me" as the subject.