[android-developers] Re: How to send email programmatically?

2008-12-17 Thread dileep singh
Ok.No prob.But whenever u get time please check this issue,coz a lot of guys
are having this prob.But anyway u hav done a great job.Thanks a lot.I also
appreciate that u have started echarcha.com.Today only i saw that.
Thanks
Dileep

On Thu, Dec 18, 2008 at 12:22 PM, Sunit Katkar wrote:

> Sorry Dileep, I have not tried with the emulator and I really dont know
> what the issue could be. I will dabble with it and let you know, but dont
> wait for my answer as I will be busy for a couple of days and over the
> weekend.
> - Sunit Katkar
> http://sunitkatkar.blogspot.com/ - Android OS Tutorials
>
>
>
>   On Wed, Dec 17, 2008 at 9:56 PM, dileep singh <
> discover.dile...@gmail.com> wrote:
>
>> Thanks a lot Sunit.U have done a good job.But in my emulator(ver1.0,r2)
>> email client is dere.But then also when I am trying to send email message is
>> appearing "no application can perform this action."
>> Please tell whats the prob.?I am wondering that email client is dere,but
>> still why this message is appearing eventhough from emulator I can send
>> email .
>>
>>   On Thu, Dec 18, 2008 at 4:43 AM, Sunit Katkar wrote:
>>
>>> The example code will open an Email client. In my case, it opens the
>>> Gmail application to send email. I will fix the code snippet.
>>>
>>> - Sunit Katkar
>>> http://sunitkatkar.blogspot.com/ - Android OS Tutorials
>>>
>>>
>>>
>>>
>>> On Wed, Dec 17, 2008 at 12:48 PM, filbert  wrote:
>>>

 Sunit, thanks for your writeups, they've been helpful.

 Your Code Snippet 1 for this new tutorial has some formatting issues,
 the last few lines are not in the code box.

 Also, does your code open the email client to send or does it send
 automatically?  your code looks similar to what's posted here and I
 thought it opened the email client (haven't tried it yet as I'm still
 on the emulator).

 On Dec 17, 1:39 pm, "Sunit Katkar"  wrote:
 > Okay I got this to work finally. Here is the code.
 http://sunitkatkar.blogspot.com/2008/12/sendmail-send-email-programma.
 ..
 >
 > - Sunit Katkarhttp://sunitkatkar.blogspot.com/- Android OS Tutorials
 >
 > On Wed, Dec 17, 2008 at 6:51 AM, friedger 
 wrote:
 >
 > > Are you working on a device or the emulator? On the emulator there
 is
 > > no email apps installed by default.
 > > Install Email or K9 and the code should work.
 >
 > > Friedger
 > > openintents.org
 > > openintents.biz
 >
 > > On 14 Dez., 05:31, Siva G  wrote:
 > > > Hi,
 >
 > > > When I try this snippet I get a message saying "No Applications
 can
 > > > perform this action." Is there something else I should take care
 of
 > > > like in the manifest file?
 >
 > > > Thanks,
 > > > Siva G
 >
 > > > On Dec 12, 5:32 am, Peli  wrote:
 >
 > > > > Ok, the site is accessible now, but for future reference I copy
 the
 > > > > code from there:http://www.openintents.org/en/node/121
 >
 > > > > Intent sendIntent = new Intent(Intent.ACTION_SEND);
 > > > > sendIntent.putExtra(Intent.EXTRA_TEXT, "email text");
 > > > > sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Subject");
 > > > > sendIntent.setType("message/rfc822");
 > > > > startActivity(Intent.createChooser(sendIntent, "Title:"));
 >
 > > > > Peliwww.openintents.orgwww.openintents.biz
 >
 > > > > On Dec 6, 7:36 pm, "Sunit Katkar" 
 wrote:
 >
 > > > > >www.openintents.orgseemstobedown. I got to this thread after a
 long
  > > time
 > > > > > and now that site is down :-(
 > > > > > - Sunit Katkarhttp://
 sunitkatkar.blogspot.com/-AndroidOSTutorials
 >
 > > > > > On Mon, Dec 1, 2008 at 6:06 PM, Xavier Mathews <
 > > xavieruni...@gmail.com>wrote:
 >
 > > > > > > Would They Be Using Gmail? If So You Could Have It Programed
 With
 > > IMAP!
 >
 > > > > > > On 12/01/2008, Jay-andro  wrote:
 >
 > > > > > > > I too want to send email programmtaically (i.e without a
 send
 > > form).
 > > > > > > > I've got it working with my hardcoded credentials, but I
 want my
 > > app
 > > > > > > > to use the user's account to send the email from the
 user's
 > > account
 > > > > > > > and receive replies to his account. How do I do this?
 >
 > > > > > > > On Nov 12, 10:51 am, "Sunit Katkar" <
 sunitkat...@gmail.com>
 > > wrote:
 > > > > > > >> Thank you. I will try this.
 >
 > > > > > > >> On Wed, Nov 12, 2008 at 12:44 AM, Peli <
 peli0...@googlemail.com>
 > > wrote:
 >
 > > > > > > >> > You can find a code snippet here:
 > > > > > > >> >http://www.openintents.org/en/node/121
 >
 > > > > > > >> > There is also a related SENDTO action which you can
 look up in
 > > the
 > > > > > > >> > documentation.
 >
 > > > > > > >> > 

[android-developers] Re: How to send email programmatically?

2008-12-17 Thread Sunit Katkar
Sorry Dileep, I have not tried with the emulator and I really dont know what
the issue could be. I will dabble with it and let you know, but dont wait
for my answer as I will be busy for a couple of days and over the weekend.
- Sunit Katkar
http://sunitkatkar.blogspot.com/ - Android OS Tutorials



On Wed, Dec 17, 2008 at 9:56 PM, dileep singh wrote:

> Thanks a lot Sunit.U have done a good job.But in my emulator(ver1.0,r2)
> email client is dere.But then also when I am trying to send email message is
> appearing "no application can perform this action."
> Please tell whats the prob.?I am wondering that email client is dere,but
> still why this message is appearing eventhough from emulator I can send
> email .
>
> On Thu, Dec 18, 2008 at 4:43 AM, Sunit Katkar wrote:
>
>> The example code will open an Email client. In my case, it opens the Gmail
>> application to send email. I will fix the code snippet.
>>
>> - Sunit Katkar
>> http://sunitkatkar.blogspot.com/ - Android OS Tutorials
>>
>>
>>
>>
>> On Wed, Dec 17, 2008 at 12:48 PM, filbert  wrote:
>>
>>>
>>> Sunit, thanks for your writeups, they've been helpful.
>>>
>>> Your Code Snippet 1 for this new tutorial has some formatting issues,
>>> the last few lines are not in the code box.
>>>
>>> Also, does your code open the email client to send or does it send
>>> automatically?  your code looks similar to what's posted here and I
>>> thought it opened the email client (haven't tried it yet as I'm still
>>> on the emulator).
>>>
>>> On Dec 17, 1:39 pm, "Sunit Katkar"  wrote:
>>> > Okay I got this to work finally. Here is the code.
>>> http://sunitkatkar.blogspot.com/2008/12/sendmail-send-email-programma...
>>> >
>>> > - Sunit Katkarhttp://sunitkatkar.blogspot.com/- Android OS Tutorials
>>> >
>>> > On Wed, Dec 17, 2008 at 6:51 AM, friedger 
>>> wrote:
>>> >
>>> > > Are you working on a device or the emulator? On the emulator there is
>>> > > no email apps installed by default.
>>> > > Install Email or K9 and the code should work.
>>> >
>>> > > Friedger
>>> > > openintents.org
>>> > > openintents.biz
>>> >
>>> > > On 14 Dez., 05:31, Siva G  wrote:
>>> > > > Hi,
>>> >
>>> > > > When I try this snippet I get a message saying "No Applications can
>>> > > > perform this action." Is there something else I should take care of
>>> > > > like in the manifest file?
>>> >
>>> > > > Thanks,
>>> > > > Siva G
>>> >
>>> > > > On Dec 12, 5:32 am, Peli  wrote:
>>> >
>>> > > > > Ok, the site is accessible now, but for future reference I copy
>>> the
>>> > > > > code from there:http://www.openintents.org/en/node/121
>>> >
>>> > > > > Intent sendIntent = new Intent(Intent.ACTION_SEND);
>>> > > > > sendIntent.putExtra(Intent.EXTRA_TEXT, "email text");
>>> > > > > sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Subject");
>>> > > > > sendIntent.setType("message/rfc822");
>>> > > > > startActivity(Intent.createChooser(sendIntent, "Title:"));
>>> >
>>> > > > > Peliwww.openintents.orgwww.openintents.biz
>>> >
>>> > > > > On Dec 6, 7:36 pm, "Sunit Katkar"  wrote:
>>> >
>>> > > > > >www.openintents.orgseemstobedown. I got to this thread after a
>>> long
>>>  > > time
>>> > > > > > and now that site is down :-(
>>> > > > > > - Sunit Katkarhttp://
>>> sunitkatkar.blogspot.com/-AndroidOSTutorials
>>> >
>>> > > > > > On Mon, Dec 1, 2008 at 6:06 PM, Xavier Mathews <
>>> > > xavieruni...@gmail.com>wrote:
>>> >
>>> > > > > > > Would They Be Using Gmail? If So You Could Have It Programed
>>> With
>>> > > IMAP!
>>> >
>>> > > > > > > On 12/01/2008, Jay-andro  wrote:
>>> >
>>> > > > > > > > I too want to send email programmtaically (i.e without a
>>> send
>>> > > form).
>>> > > > > > > > I've got it working with my hardcoded credentials, but I
>>> want my
>>> > > app
>>> > > > > > > > to use the user's account to send the email from the user's
>>> > > account
>>> > > > > > > > and receive replies to his account. How do I do this?
>>> >
>>> > > > > > > > On Nov 12, 10:51 am, "Sunit Katkar" >> >
>>> > > wrote:
>>> > > > > > > >> Thank you. I will try this.
>>> >
>>> > > > > > > >> On Wed, Nov 12, 2008 at 12:44 AM, Peli <
>>> peli0...@googlemail.com>
>>> > > wrote:
>>> >
>>> > > > > > > >> > You can find a code snippet here:
>>> > > > > > > >> >http://www.openintents.org/en/node/121
>>> >
>>> > > > > > > >> > There is also a related SENDTO action which you can look
>>> up in
>>> > > the
>>> > > > > > > >> > documentation.
>>> >
>>> > > > > > > >> > Peli
>>> > > > > > > >> >www.openintents.org
>>> >
>>> > > > > > > >> > On Nov 12, 8:52 am, "Sunit Katkar" <
>>> sunitkat...@gmail.com>
>>> > > wrote:
>>> > > > > > > >> > > Ok how would I implement the 'send form'. Do you mean
>>> that I
>>> > > should
>>> > > > > > > >> > launch a
>>> > > > > > > >> > > web browser and use some webmail type of application
>>> hosted
>>> > > on a
>>> > > > > > > >> > > server?
>>> > > > > > > >> > > I was thinking about the Email Outbox. How can I put a
>>> > > simple text
>>>

[android-developers] Re: How to send email programmatically?

2008-12-17 Thread dileep singh
Thanks a lot Sunit.U have done a good job.But in my emulator(ver1.0,r2)
email client is dere.But then also when I am trying to send email message is
appearing "no application can perform this action."
Please tell whats the prob.?I am wondering that email client is dere,but
still why this message is appearing eventhough from emulator I can send
email .

On Thu, Dec 18, 2008 at 4:43 AM, Sunit Katkar  wrote:

> The example code will open an Email client. In my case, it opens the Gmail
> application to send email. I will fix the code snippet.
>
> - Sunit Katkar
> http://sunitkatkar.blogspot.com/ - Android OS Tutorials
>
>
>
>
> On Wed, Dec 17, 2008 at 12:48 PM, filbert  wrote:
>
>>
>> Sunit, thanks for your writeups, they've been helpful.
>>
>> Your Code Snippet 1 for this new tutorial has some formatting issues,
>> the last few lines are not in the code box.
>>
>> Also, does your code open the email client to send or does it send
>> automatically?  your code looks similar to what's posted here and I
>> thought it opened the email client (haven't tried it yet as I'm still
>> on the emulator).
>>
>> On Dec 17, 1:39 pm, "Sunit Katkar"  wrote:
>> > Okay I got this to work finally. Here is the code.
>> http://sunitkatkar.blogspot.com/2008/12/sendmail-send-email-programma...
>> >
>> > - Sunit Katkarhttp://sunitkatkar.blogspot.com/- Android OS Tutorials
>> >
>> > On Wed, Dec 17, 2008 at 6:51 AM, friedger 
>> wrote:
>> >
>> > > Are you working on a device or the emulator? On the emulator there is
>> > > no email apps installed by default.
>> > > Install Email or K9 and the code should work.
>> >
>> > > Friedger
>> > > openintents.org
>> > > openintents.biz
>> >
>> > > On 14 Dez., 05:31, Siva G  wrote:
>> > > > Hi,
>> >
>> > > > When I try this snippet I get a message saying "No Applications can
>> > > > perform this action." Is there something else I should take care of
>> > > > like in the manifest file?
>> >
>> > > > Thanks,
>> > > > Siva G
>> >
>> > > > On Dec 12, 5:32 am, Peli  wrote:
>> >
>> > > > > Ok, the site is accessible now, but for future reference I copy
>> the
>> > > > > code from there:http://www.openintents.org/en/node/121
>> >
>> > > > > Intent sendIntent = new Intent(Intent.ACTION_SEND);
>> > > > > sendIntent.putExtra(Intent.EXTRA_TEXT, "email text");
>> > > > > sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Subject");
>> > > > > sendIntent.setType("message/rfc822");
>> > > > > startActivity(Intent.createChooser(sendIntent, "Title:"));
>> >
>> > > > > Peliwww.openintents.orgwww.openintents.biz
>> >
>> > > > > On Dec 6, 7:36 pm, "Sunit Katkar"  wrote:
>> >
>> > > > > >www.openintents.orgseemstobedown. I got to this thread after a
>> long
>>  > > time
>> > > > > > and now that site is down :-(
>> > > > > > - Sunit Katkarhttp://
>> sunitkatkar.blogspot.com/-AndroidOSTutorials
>> >
>> > > > > > On Mon, Dec 1, 2008 at 6:06 PM, Xavier Mathews <
>> > > xavieruni...@gmail.com>wrote:
>> >
>> > > > > > > Would They Be Using Gmail? If So You Could Have It Programed
>> With
>> > > IMAP!
>> >
>> > > > > > > On 12/01/2008, Jay-andro  wrote:
>> >
>> > > > > > > > I too want to send email programmtaically (i.e without a
>> send
>> > > form).
>> > > > > > > > I've got it working with my hardcoded credentials, but I
>> want my
>> > > app
>> > > > > > > > to use the user's account to send the email from the user's
>> > > account
>> > > > > > > > and receive replies to his account. How do I do this?
>> >
>> > > > > > > > On Nov 12, 10:51 am, "Sunit Katkar" 
>> > > wrote:
>> > > > > > > >> Thank you. I will try this.
>> >
>> > > > > > > >> On Wed, Nov 12, 2008 at 12:44 AM, Peli <
>> peli0...@googlemail.com>
>> > > wrote:
>> >
>> > > > > > > >> > You can find a code snippet here:
>> > > > > > > >> >http://www.openintents.org/en/node/121
>> >
>> > > > > > > >> > There is also a related SENDTO action which you can look
>> up in
>> > > the
>> > > > > > > >> > documentation.
>> >
>> > > > > > > >> > Peli
>> > > > > > > >> >www.openintents.org
>> >
>> > > > > > > >> > On Nov 12, 8:52 am, "Sunit Katkar" <
>> sunitkat...@gmail.com>
>> > > wrote:
>> > > > > > > >> > > Ok how would I implement the 'send form'. Do you mean
>> that I
>> > > should
>> > > > > > > >> > launch a
>> > > > > > > >> > > web browser and use some webmail type of application
>> hosted
>> > > on a
>> > > > > > > >> > > server?
>> > > > > > > >> > > I was thinking about the Email Outbox. How can I put a
>> > > simple text
>> > > > > > > >> > message
>> > > > > > > >> > > as an email in the Outbox? I know I could do this long
>> long
>> > > ago with
>> > > > > > > >> > > Palm
>> > > > > > > >> > OS
>> > > > > > > >> > > ver3.0. Hope there is a way to do it on Android.
>> >
>> > > > > > > >> > > - Sunit
>> >
>> > > > > > > >> > > On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess <
>> > > abom...@gmail.com>
>> > > > > > > >> > wrote:
>> > > > > > > >> > > > If you don't want to direct the user to the typical
>> send

[android-developers] Re: How to send email programmatically?

2008-12-17 Thread Sunit Katkar
The example code will open an Email client. In my case, it opens the Gmail
application to send email.I will fix the code snippet.

- Sunit Katkar
http://sunitkatkar.blogspot.com/ - Android OS Tutorials



On Wed, Dec 17, 2008 at 12:48 PM, filbert  wrote:

>
> Sunit, thanks for your writeups, they've been helpful.
>
> Your Code Snippet 1 for this new tutorial has some formatting issues,
> the last few lines are not in the code box.
>
> Also, does your code open the email client to send or does it send
> automatically?  your code looks similar to what's posted here and I
> thought it opened the email client (haven't tried it yet as I'm still
> on the emulator).
>
> On Dec 17, 1:39 pm, "Sunit Katkar"  wrote:
> > Okay I got this to work finally. Here is the code.
> http://sunitkatkar.blogspot.com/2008/12/sendmail-send-email-programma...
> >
> > - Sunit Katkarhttp://sunitkatkar.blogspot.com/- Android OS Tutorials
> >
> > On Wed, Dec 17, 2008 at 6:51 AM, friedger 
> wrote:
> >
> > > Are you working on a device or the emulator? On the emulator there is
> > > no email apps installed by default.
> > > Install Email or K9 and the code should work.
> >
> > > Friedger
> > > openintents.org
> > > openintents.biz
> >
> > > On 14 Dez., 05:31, Siva G  wrote:
> > > > Hi,
> >
> > > > When I try this snippet I get a message saying "No Applications can
> > > > perform this action." Is there something else I should take care of
> > > > like in the manifest file?
> >
> > > > Thanks,
> > > > Siva G
> >
> > > > On Dec 12, 5:32 am, Peli  wrote:
> >
> > > > > Ok, the site is accessible now, but for future reference I copy the
> > > > > code from there:http://www.openintents.org/en/node/121
> >
> > > > > Intent sendIntent = new Intent(Intent.ACTION_SEND);
> > > > > sendIntent.putExtra(Intent.EXTRA_TEXT, "email text");
> > > > > sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Subject");
> > > > > sendIntent.setType("message/rfc822");
> > > > > startActivity(Intent.createChooser(sendIntent, "Title:"));
> >
> > > > > Peliwww.openintents.orgwww.openintents.biz
> >
> > > > > On Dec 6, 7:36 pm, "Sunit Katkar"  wrote:
> >
> > > > > >www.openintents.orgseemstobedown. I got to this thread after a
> long
> > > time
> > > > > > and now that site is down :-(
> > > > > > - Sunit Katkarhttp://
> sunitkatkar.blogspot.com/-AndroidOSTutorials
> >
> > > > > > On Mon, Dec 1, 2008 at 6:06 PM, Xavier Mathews <
> > > xavieruni...@gmail.com>wrote:
> >
> > > > > > > Would They Be Using Gmail? If So You Could Have It Programed
> With
> > > IMAP!
> >
> > > > > > > On 12/01/2008, Jay-andro  wrote:
> >
> > > > > > > > I too want to send email programmtaically (i.e without a send
> > > form).
> > > > > > > > I've got it working with my hardcoded credentials, but I want
> my
> > > app
> > > > > > > > to use the user's account to send the email from the user's
> > > account
> > > > > > > > and receive replies to his account. How do I do this?
> >
> > > > > > > > On Nov 12, 10:51 am, "Sunit Katkar" 
> > > wrote:
> > > > > > > >> Thank you. I will try this.
> >
> > > > > > > >> On Wed, Nov 12, 2008 at 12:44 AM, Peli <
> peli0...@googlemail.com>
> > > wrote:
> >
> > > > > > > >> > You can find a code snippet here:
> > > > > > > >> >http://www.openintents.org/en/node/121
> >
> > > > > > > >> > There is also a related SENDTO action which you can look
> up in
> > > the
> > > > > > > >> > documentation.
> >
> > > > > > > >> > Peli
> > > > > > > >> >www.openintents.org
> >
> > > > > > > >> > On Nov 12, 8:52 am, "Sunit Katkar"  >
> > > wrote:
> > > > > > > >> > > Ok how would I implement the 'send form'. Do you mean
> that I
> > > should
> > > > > > > >> > launch a
> > > > > > > >> > > web browser and use some webmail type of application
> hosted
> > > on a
> > > > > > > >> > > server?
> > > > > > > >> > > I was thinking about the Email Outbox. How can I put a
> > > simple text
> > > > > > > >> > message
> > > > > > > >> > > as an email in the Outbox? I know I could do this long
> long
> > > ago with
> > > > > > > >> > > Palm
> > > > > > > >> > OS
> > > > > > > >> > > ver3.0. Hope there is a way to do it on Android.
> >
> > > > > > > >> > > - Sunit
> >
> > > > > > > >> > > On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess <
> > > abom...@gmail.com>
> > > > > > > >> > wrote:
> > > > > > > >> > > > If you don't want to direct the user to the typical
> send
> > > form,
> > > > > > > then
> > > > > > > >> > you're
> > > > > > > >> > > > going to have to either try and adapt an existing java
> > > based
> > > > > > > mailer
> > > > > > > >> > > > to
> > > > > > > >> > > > android or write an SMTP client from scratch.  The
> SMTP
> > > standard
> > > > > > > >> > > > isn't
> > > > > > > >> > too
> > > > > > > >> > > > hard to implement.
> >
> > > > > > > >> > > > On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar <
> > > > > > > sunitkat...@gmail.com
> > > > > > > >> > >wrote:
> >
> > > > > > > >> > > >> Any ideas? Any pointers to some examples?
> >
> > > > > > > >> > > >> On Tue, Nov 11, 

[android-developers] Re: How to send email programmatically?

2008-12-17 Thread filbert

Sunit, thanks for your writeups, they've been helpful.

Your Code Snippet 1 for this new tutorial has some formatting issues,
the last few lines are not in the code box.

Also, does your code open the email client to send or does it send
automatically?  your code looks similar to what's posted here and I
thought it opened the email client (haven't tried it yet as I'm still
on the emulator).

On Dec 17, 1:39 pm, "Sunit Katkar"  wrote:
> Okay I got this to work finally. Here is the 
> code.http://sunitkatkar.blogspot.com/2008/12/sendmail-send-email-programma...
>
> - Sunit Katkarhttp://sunitkatkar.blogspot.com/- Android OS Tutorials
>
> On Wed, Dec 17, 2008 at 6:51 AM, friedger  wrote:
>
> > Are you working on a device or the emulator? On the emulator there is
> > no email apps installed by default.
> > Install Email or K9 and the code should work.
>
> > Friedger
> > openintents.org
> > openintents.biz
>
> > On 14 Dez., 05:31, Siva G  wrote:
> > > Hi,
>
> > > When I try this snippet I get a message saying "No Applications can
> > > perform this action." Is there something else I should take care of
> > > like in the manifest file?
>
> > > Thanks,
> > > Siva G
>
> > > On Dec 12, 5:32 am, Peli  wrote:
>
> > > > Ok, the site is accessible now, but for future reference I copy the
> > > > code from there:http://www.openintents.org/en/node/121
>
> > > > Intent sendIntent = new Intent(Intent.ACTION_SEND);
> > > > sendIntent.putExtra(Intent.EXTRA_TEXT, "email text");
> > > > sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Subject");
> > > > sendIntent.setType("message/rfc822");
> > > > startActivity(Intent.createChooser(sendIntent, "Title:"));
>
> > > > Peliwww.openintents.orgwww.openintents.biz
>
> > > > On Dec 6, 7:36 pm, "Sunit Katkar"  wrote:
>
> > > > >www.openintents.orgseemstobedown. I got to this thread after a long
> > time
> > > > > and now that site is down :-(
> > > > > - Sunit Katkarhttp://sunitkatkar.blogspot.com/-AndroidOSTutorials
>
> > > > > On Mon, Dec 1, 2008 at 6:06 PM, Xavier Mathews <
> > xavieruni...@gmail.com>wrote:
>
> > > > > > Would They Be Using Gmail? If So You Could Have It Programed With
> > IMAP!
>
> > > > > > On 12/01/2008, Jay-andro  wrote:
>
> > > > > > > I too want to send email programmtaically (i.e without a send
> > form).
> > > > > > > I've got it working with my hardcoded credentials, but I want my
> > app
> > > > > > > to use the user's account to send the email from the user's
> > account
> > > > > > > and receive replies to his account. How do I do this?
>
> > > > > > > On Nov 12, 10:51 am, "Sunit Katkar" 
> > wrote:
> > > > > > >> Thank you. I will try this.
>
> > > > > > >> On Wed, Nov 12, 2008 at 12:44 AM, Peli 
> > wrote:
>
> > > > > > >> > You can find a code snippet here:
> > > > > > >> >http://www.openintents.org/en/node/121
>
> > > > > > >> > There is also a related SENDTO action which you can look up in
> > the
> > > > > > >> > documentation.
>
> > > > > > >> > Peli
> > > > > > >> >www.openintents.org
>
> > > > > > >> > On Nov 12, 8:52 am, "Sunit Katkar" 
> > wrote:
> > > > > > >> > > Ok how would I implement the 'send form'. Do you mean that I
> > should
> > > > > > >> > launch a
> > > > > > >> > > web browser and use some webmail type of application hosted
> > on a
> > > > > > >> > > server?
> > > > > > >> > > I was thinking about the Email Outbox. How can I put a
> > simple text
> > > > > > >> > message
> > > > > > >> > > as an email in the Outbox? I know I could do this long long
> > ago with
> > > > > > >> > > Palm
> > > > > > >> > OS
> > > > > > >> > > ver3.0. Hope there is a way to do it on Android.
>
> > > > > > >> > > - Sunit
>
> > > > > > >> > > On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess <
> > abom...@gmail.com>
> > > > > > >> > wrote:
> > > > > > >> > > > If you don't want to direct the user to the typical send
> > form,
> > > > > > then
> > > > > > >> > you're
> > > > > > >> > > > going to have to either try and adapt an existing java
> > based
> > > > > > mailer
> > > > > > >> > > > to
> > > > > > >> > > > android or write an SMTP client from scratch.  The SMTP
> > standard
> > > > > > >> > > > isn't
> > > > > > >> > too
> > > > > > >> > > > hard to implement.
>
> > > > > > >> > > > On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar <
> > > > > > sunitkat...@gmail.com
> > > > > > >> > >wrote:
>
> > > > > > >> > > >> Any ideas? Any pointers to some examples?
>
> > > > > > >> > > >> On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar
> > > > > > >> > > >>  > > > > > >> > >wrote:
>
> > > > > > >> > > >>> Suppose I have an Activity which has couple of text
> > fields - one
> > > > > > >> > > >>> for
> > > > > > >> > the
> > > > > > >> > > >>> subject and one for body text.
> > > > > > >> > > >>> And there is a simple Button. When user clicks the
> > button, I
> > > > > > wish
> > > > > > >> > > >>> to
> > > > > > >> > send
> > > > > > >> > > >>> the text in the textfields via email to a predetermined
> > email
> > > > > > >> > address.
> > > > > > >> > > >>> How ca

[android-developers] Re: How to send email programmatically?

2008-12-17 Thread Sunit Katkar
Okay I got this to work finally. Here is the code.
http://sunitkatkar.blogspot.com/2008/12/sendmail-send-email-programmatically.html


- Sunit Katkar
http://sunitkatkar.blogspot.com/ - Android OS Tutorials



On Wed, Dec 17, 2008 at 6:51 AM, friedger  wrote:

>
> Are you working on a device or the emulator? On the emulator there is
> no email apps installed by default.
> Install Email or K9 and the code should work.
>
> Friedger
> openintents.org
> openintents.biz
>
> On 14 Dez., 05:31, Siva G  wrote:
> > Hi,
> >
> > When I try this snippet I get a message saying "No Applications can
> > perform this action." Is there something else I should take care of
> > like in the manifest file?
> >
> > Thanks,
> > Siva G
> >
> > On Dec 12, 5:32 am, Peli  wrote:
> >
> > > Ok, the site is accessible now, but for future reference I copy the
> > > code from there:http://www.openintents.org/en/node/121
> >
> > > Intent sendIntent = new Intent(Intent.ACTION_SEND);
> > > sendIntent.putExtra(Intent.EXTRA_TEXT, "email text");
> > > sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Subject");
> > > sendIntent.setType("message/rfc822");
> > > startActivity(Intent.createChooser(sendIntent, "Title:"));
> >
> > > Peliwww.openintents.orgwww.openintents.biz
> >
> > > On Dec 6, 7:36 pm, "Sunit Katkar"  wrote:
> >
> > > >www.openintents.orgseemstobe down. I got to this thread after a long
> time
> > > > and now that site is down :-(
> > > > - Sunit Katkarhttp://sunitkatkar.blogspot.com/-AndroidOS Tutorials
> >
> > > > On Mon, Dec 1, 2008 at 6:06 PM, Xavier Mathews <
> xavieruni...@gmail.com>wrote:
> >
> > > > > Would They Be Using Gmail? If So You Could Have It Programed With
> IMAP!
> >
> > > > > On 12/01/2008, Jay-andro  wrote:
> >
> > > > > > I too want to send email programmtaically (i.e without a send
> form).
> > > > > > I've got it working with my hardcoded credentials, but I want my
> app
> > > > > > to use the user's account to send the email from the user's
> account
> > > > > > and receive replies to his account. How do I do this?
> >
> > > > > > On Nov 12, 10:51 am, "Sunit Katkar" 
> wrote:
> > > > > >> Thank you. I will try this.
> >
> > > > > >> On Wed, Nov 12, 2008 at 12:44 AM, Peli 
> wrote:
> >
> > > > > >> > You can find a code snippet here:
> > > > > >> >http://www.openintents.org/en/node/121
> >
> > > > > >> > There is also a related SENDTO action which you can look up in
> the
> > > > > >> > documentation.
> >
> > > > > >> > Peli
> > > > > >> >www.openintents.org
> >
> > > > > >> > On Nov 12, 8:52 am, "Sunit Katkar" 
> wrote:
> > > > > >> > > Ok how would I implement the 'send form'. Do you mean that I
> should
> > > > > >> > launch a
> > > > > >> > > web browser and use some webmail type of application hosted
> on a
> > > > > >> > > server?
> > > > > >> > > I was thinking about the Email Outbox. How can I put a
> simple text
> > > > > >> > message
> > > > > >> > > as an email in the Outbox? I know I could do this long long
> ago with
> > > > > >> > > Palm
> > > > > >> > OS
> > > > > >> > > ver3.0. Hope there is a way to do it on Android.
> >
> > > > > >> > > - Sunit
> >
> > > > > >> > > On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess <
> abom...@gmail.com>
> > > > > >> > wrote:
> > > > > >> > > > If you don't want to direct the user to the typical send
> form,
> > > > > then
> > > > > >> > you're
> > > > > >> > > > going to have to either try and adapt an existing java
> based
> > > > > mailer
> > > > > >> > > > to
> > > > > >> > > > android or write an SMTP client from scratch.  The SMTP
> standard
> > > > > >> > > > isn't
> > > > > >> > too
> > > > > >> > > > hard to implement.
> >
> > > > > >> > > > On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar <
> > > > > sunitkat...@gmail.com
> > > > > >> > >wrote:
> >
> > > > > >> > > >> Any ideas? Any pointers to some examples?
> >
> > > > > >> > > >> On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar
> > > > > >> > > >>  > > > > >> > >wrote:
> >
> > > > > >> > > >>> Suppose I have an Activity which has couple of text
> fields - one
> > > > > >> > > >>> for
> > > > > >> > the
> > > > > >> > > >>> subject and one for body text.
> > > > > >> > > >>> And there is a simple Button. When user clicks the
> button, I
> > > > > wish
> > > > > >> > > >>> to
> > > > > >> > send
> > > > > >> > > >>> the text in the textfields via email to a predetermined
> email
> > > > > >> > address.
> > > > > >> > > >>> How can I achieve this?
> >
> > > > > >> > > >>> Sorry for being lazy and not looking up the SDK docs :)
> >
> > > > > >> > > >>> PS: I have configured the EMAIL app on G1 using the
> Email setup
> > > > > >> > steps, so
> > > > > >> > > >>> it can receive and send email from my email account.
> >
> > > > > >> > > >>> --
> > > > > >> > > >>> - Sunit Katkar
> > > > > >> > > >>>http://sunitkatkar.blogspot.com/-AndroidOSTutorials
> >
> > > > > >> > > >> --
> > > > > >> > > >> - Sunit Katkar
> > > > > >> > > >>http://sunitkatkar.blogspot.com/-AndroidOSTutorials
> >
> > > > > >> > > > --
> > > > > 

[android-developers] Re: How to send email programmatically?

2008-12-17 Thread friedger

Are you working on a device or the emulator? On the emulator there is
no email apps installed by default.
Install Email or K9 and the code should work.

Friedger
openintents.org
openintents.biz

On 14 Dez., 05:31, Siva G  wrote:
> Hi,
>
> When I try this snippet I get a message saying "No Applications can
> perform this action." Is there something else I should take care of
> like in the manifest file?
>
> Thanks,
> Siva G
>
> On Dec 12, 5:32 am, Peli  wrote:
>
> > Ok, the site is accessible now, but for future reference I copy the
> > code from there:http://www.openintents.org/en/node/121
>
> > Intent sendIntent = new Intent(Intent.ACTION_SEND);
> > sendIntent.putExtra(Intent.EXTRA_TEXT, "email text");
> > sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Subject");
> > sendIntent.setType("message/rfc822");
> > startActivity(Intent.createChooser(sendIntent, "Title:"));
>
> > Peliwww.openintents.orgwww.openintents.biz
>
> > On Dec 6, 7:36 pm, "Sunit Katkar"  wrote:
>
> > >www.openintents.orgseemstobe down. I got to this thread after a long time
> > > and now that site is down :-(
> > > - Sunit Katkarhttp://sunitkatkar.blogspot.com/-AndroidOS Tutorials
>
> > > On Mon, Dec 1, 2008 at 6:06 PM, Xavier Mathews 
> > > wrote:
>
> > > > Would They Be Using Gmail? If So You Could Have It Programed With IMAP!
>
> > > > On 12/01/2008, Jay-andro  wrote:
>
> > > > > I too want to send email programmtaically (i.e without a send form).
> > > > > I've got it working with my hardcoded credentials, but I want my app
> > > > > to use the user's account to send the email from the user's account
> > > > > and receive replies to his account. How do I do this?
>
> > > > > On Nov 12, 10:51 am, "Sunit Katkar"  wrote:
> > > > >> Thank you. I will try this.
>
> > > > >> On Wed, Nov 12, 2008 at 12:44 AM, Peli  
> > > > >> wrote:
>
> > > > >> > You can find a code snippet here:
> > > > >> >http://www.openintents.org/en/node/121
>
> > > > >> > There is also a related SENDTO action which you can look up in the
> > > > >> > documentation.
>
> > > > >> > Peli
> > > > >> >www.openintents.org
>
> > > > >> > On Nov 12, 8:52 am, "Sunit Katkar"  wrote:
> > > > >> > > Ok how would I implement the 'send form'. Do you mean that I 
> > > > >> > > should
> > > > >> > launch a
> > > > >> > > web browser and use some webmail type of application hosted on a
> > > > >> > > server?
> > > > >> > > I was thinking about the Email Outbox. How can I put a simple 
> > > > >> > > text
> > > > >> > message
> > > > >> > > as an email in the Outbox? I know I could do this long long ago 
> > > > >> > > with
> > > > >> > > Palm
> > > > >> > OS
> > > > >> > > ver3.0. Hope there is a way to do it on Android.
>
> > > > >> > > - Sunit
>
> > > > >> > > On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess 
> > > > >> > > 
> > > > >> > wrote:
> > > > >> > > > If you don't want to direct the user to the typical send form,
> > > > then
> > > > >> > you're
> > > > >> > > > going to have to either try and adapt an existing java based
> > > > mailer
> > > > >> > > > to
> > > > >> > > > android or write an SMTP client from scratch.  The SMTP 
> > > > >> > > > standard
> > > > >> > > > isn't
> > > > >> > too
> > > > >> > > > hard to implement.
>
> > > > >> > > > On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar <
> > > > sunitkat...@gmail.com
> > > > >> > >wrote:
>
> > > > >> > > >> Any ideas? Any pointers to some examples?
>
> > > > >> > > >> On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar
> > > > >> > > >>  > > > >> > >wrote:
>
> > > > >> > > >>> Suppose I have an Activity which has couple of text fields - 
> > > > >> > > >>> one
> > > > >> > > >>> for
> > > > >> > the
> > > > >> > > >>> subject and one for body text.
> > > > >> > > >>> And there is a simple Button. When user clicks the button, I
> > > > wish
> > > > >> > > >>> to
> > > > >> > send
> > > > >> > > >>> the text in the textfields via email to a predetermined email
> > > > >> > address.
> > > > >> > > >>> How can I achieve this?
>
> > > > >> > > >>> Sorry for being lazy and not looking up the SDK docs :)
>
> > > > >> > > >>> PS: I have configured the EMAIL app on G1 using the Email 
> > > > >> > > >>> setup
> > > > >> > steps, so
> > > > >> > > >>> it can receive and send email from my email account.
>
> > > > >> > > >>> --
> > > > >> > > >>> - Sunit Katkar
> > > > >> > > >>>http://sunitkatkar.blogspot.com/-AndroidOSTutorials
>
> > > > >> > > >> --
> > > > >> > > >> - Sunit Katkar
> > > > >> > > >>http://sunitkatkar.blogspot.com/-AndroidOSTutorials
>
> > > > >> > > > --
> > > > >> > > > Andrew Burgess
>
> > > > >> > > --
> > > > >> > > - Sunit Katkarhttp://sunitkatkar.blogspot.com/-AndroidOSTutorials
>
> > > > >> --
> > > > >> - Sunit Katkarhttp://sunitkatkar.blogspot.com/-AndroidOSTutorials
>
> > > > --
> > > > Xavier A. Mathews
> > > > Student/Browser Specialist/Developer/Web-Master
> > > > Google Group Client Based Tech Support Specialist
> > > > Hazel Crest Illinois
> > > > xavieruni...@gmail.com¥xavieruni...@hotmail.com¥trues

[android-developers] Re: How to send email programmatically?

2008-12-17 Thread dileep singh
Thanks peli.I will check that .

On Wed, Dec 17, 2008 at 6:32 PM, Peli  wrote:

>
> Currently there is no application installed on the emulator by default
> that can handle this intent.
> On the 'real' device G1 there are Google Mail and MMS available to
> handle this intent.
>
> Looking at the K9mail Manifest
> http://code.google.com/p/k9mail/source/browse/k9mail/trunk/AndroidManifest.xml
> it seems they support the SEND intent only for "image/*" MIME types,
> but they also support the SENDTO and VIEW intents with a "mailto:";
> address.
>
> One could write to the K9mail group and suggest to support the SEND
> intent for other MIME types as well.
>
> I've written to the K9-mail team here:
> http://groups.google.com/group/k-9-mail/browse_frm/thread/2621f0a54b0bf03e
>
> Please add your comments and wishes there as well!
>
> Peli
> www.openintents.org
>
> On Dec 17, 12:41 pm, "dileep singh" 
> wrote:
> > Hi Peli,
> >  Is sending email stuff is supporting in android emulator sdk1.0
> r2?:"Email
> > application is dere but when i am executing that code , message is
> appearing
> > that "no application can perform this action".A lot of people are having
> > this problem.So,please tell whats the reason ,eventhough email client is
> > dere.Do we need to add something xtra in manifestfile or what?
> > Thanks
> >
>  > On Wed, Dec 17, 2008 at 4:56 PM, Peli  wrote:
> >
> > > Currently, the OpenIntents table seems to be more complete :-)
> > >http://www.openintents.org/en/intentstable
> >
> > > (although there are still more intents that can be found in the
> > > original documentation: e.g.
> > >http://code.google.com/android/reference/android/content/Intent.html
> > > )
> >
> > > Peli
> > >www.openintents.org
> >
> > > On Dec 17, 2:49 am, "Dianne Hackborn"  wrote:
> > > > There is a lot of stuff missing from that doc.
> >
> > >  > On Tue, Dec 16, 2008 at 2:26 PM, filbert 
> wrote:
> >
> > > > > According to this page
> > > > >http://code.google.com/android/reference/available-intents.html
> > > > > the mailto: url is not supported by an intent...  unless it was
> simply
> > > > > left off the list by accident.  That is a possible explanation but
> my
> > > > > attempts to use mailto: in a URL result in errors..  unfortunately
> I
> > > > > cannot list the exact error here b/c I already switched to Peli's
> > > > > suggested method of emailing.
> >
> > > > > Siva, for your "no application" error my guess is that the android
> > > > > emulator does not have an e-mail application since it doesn't
> actually
> > > > > know who you are (you'll notice there is no email or gmail app in
> the
> > > > > emulator's app list).  I don't know if a developer phone would work
> > > > > either.  You may want to consider testing on a real phone and
> seeing
> > > > > if it works... that is what I plan to do once i get my app to a
> stable
> > > > > state.
> >
> > > > > On Dec 13, 10:31 pm, Siva G  wrote:
> > > > > > Hi,
> >
> > > > > > When I try this snippet I get a message saying "No Applications
> can
> > > > > > perform this action." Is there something else I should take care
> of
> > > > > > like in the manifest file?
> >
> > > > > > Thanks,
> > > > > > Siva G
> >
> > > > > > On Dec 12, 5:32 am, Peli  wrote:
> >
> > > > > > > Ok, the site is accessible now, but for future reference I copy
> the
> > > > > > > code from there:http://www.openintents.org/en/node/121
> >
> > > > > > > Intent sendIntent = new Intent(Intent.ACTION_SEND);
> > > > > > > sendIntent.putExtra(Intent.EXTRA_TEXT, "emailtext");
> > > > > > > sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Subject");
> > > > > > > sendIntent.setType("message/rfc822");
> > > > > > > startActivity(Intent.createChooser(sendIntent, "Title:"));
> >
> > > > > > > Peliwww.openintents.orgwww.openintents.biz
> 
>  >
> > > > > > > On Dec 6, 7:36 pm, "Sunit Katkar" 
> wrote:
> >
> > > > > > > >www.openintents.orgseemstobedown. I got to this thread after a
> > > long
> > >  > > time
> > > > > > > > and now that site is down :-(
> > > > > > > > - Sunit Katkarhttp://
> > > sunitkatkar.blogspot.com/-AndroidOSTutorials
> >
> > > > > > > > On Mon, Dec 1, 2008 at 6:06 PM, Xavier Mathews <
> > > > > xavieruni...@gmail.com>wrote:
> >
> > > > > > > > > Would They Be Using Gmail? If So You Could Have It
> Programed
> > > With
> > > > > IMAP!
> >
> > > > > > > > > On 12/01/2008, Jay-andro  wrote:
> >
> > > > > > > > > > I too want tosendemailprogrammtaically (i.e without
> > > asendform).
> > > > > > > > > > I've got it working with my hardcoded credentials, but I
> want
> > > my
> > > > > app
> > > > > > > > > > to use the user's account tosendtheemailfrom the user's
> > > account
> > > > > > > > > > and receive replies to his account. How do I do this?
> >
> > > > > > > > > > On Nov 12, 10:51 am, "Sunit Katkar" <
> sunitkat...@gmail.com>
> > > > > wrote:
> > > > > > > > > >> Thank you. I will try thi

[android-developers] Re: How to send email programmatically?

2008-12-17 Thread Peli

Currently there is no application installed on the emulator by default
that can handle this intent.
On the 'real' device G1 there are Google Mail and MMS available to
handle this intent.

Looking at the K9mail Manifest 
http://code.google.com/p/k9mail/source/browse/k9mail/trunk/AndroidManifest.xml
it seems they support the SEND intent only for "image/*" MIME types,
but they also support the SENDTO and VIEW intents with a "mailto:";
address.

One could write to the K9mail group and suggest to support the SEND
intent for other MIME types as well.

I've written to the K9-mail team here:
http://groups.google.com/group/k-9-mail/browse_frm/thread/2621f0a54b0bf03e

Please add your comments and wishes there as well!

Peli
www.openintents.org

On Dec 17, 12:41 pm, "dileep singh" 
wrote:
> Hi Peli,
>  Is sending email stuff is supporting in android emulator sdk1.0 r2?:"Email
> application is dere but when i am executing that code , message is appearing
> that "no application can perform this action".A lot of people are having
> this problem.So,please tell whats the reason ,eventhough email client is
> dere.Do we need to add something xtra in manifestfile or what?
> Thanks
>
> On Wed, Dec 17, 2008 at 4:56 PM, Peli  wrote:
>
> > Currently, the OpenIntents table seems to be more complete :-)
> >http://www.openintents.org/en/intentstable
>
> > (although there are still more intents that can be found in the
> > original documentation: e.g.
> >http://code.google.com/android/reference/android/content/Intent.html
> > )
>
> > Peli
> >www.openintents.org
>
> > On Dec 17, 2:49 am, "Dianne Hackborn"  wrote:
> > > There is a lot of stuff missing from that doc.
>
> >  > On Tue, Dec 16, 2008 at 2:26 PM, filbert  wrote:
>
> > > > According to this page
> > > >http://code.google.com/android/reference/available-intents.html
> > > > the mailto: url is not supported by an intent...  unless it was simply
> > > > left off the list by accident.  That is a possible explanation but my
> > > > attempts to use mailto: in a URL result in errors..  unfortunately I
> > > > cannot list the exact error here b/c I already switched to Peli's
> > > > suggested method of emailing.
>
> > > > Siva, for your "no application" error my guess is that the android
> > > > emulator does not have an e-mail application since it doesn't actually
> > > > know who you are (you'll notice there is no email or gmail app in the
> > > > emulator's app list).  I don't know if a developer phone would work
> > > > either.  You may want to consider testing on a real phone and seeing
> > > > if it works... that is what I plan to do once i get my app to a stable
> > > > state.
>
> > > > On Dec 13, 10:31 pm, Siva G  wrote:
> > > > > Hi,
>
> > > > > When I try this snippet I get a message saying "No Applications can
> > > > > perform this action." Is there something else I should take care of
> > > > > like in the manifest file?
>
> > > > > Thanks,
> > > > > Siva G
>
> > > > > On Dec 12, 5:32 am, Peli  wrote:
>
> > > > > > Ok, the site is accessible now, but for future reference I copy the
> > > > > > code from there:http://www.openintents.org/en/node/121
>
> > > > > > Intent sendIntent = new Intent(Intent.ACTION_SEND);
> > > > > > sendIntent.putExtra(Intent.EXTRA_TEXT, "emailtext");
> > > > > > sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Subject");
> > > > > > sendIntent.setType("message/rfc822");
> > > > > > startActivity(Intent.createChooser(sendIntent, "Title:"));
>
> > > > > > Peliwww.openintents.orgwww.openintents.biz
>
> > > > > > On Dec 6, 7:36 pm, "Sunit Katkar"  wrote:
>
> > > > > > >www.openintents.orgseemstobedown. I got to this thread after a
> > long
> >  > > time
> > > > > > > and now that site is down :-(
> > > > > > > - Sunit Katkarhttp://
> > sunitkatkar.blogspot.com/-AndroidOSTutorials
>
> > > > > > > On Mon, Dec 1, 2008 at 6:06 PM, Xavier Mathews <
> > > > xavieruni...@gmail.com>wrote:
>
> > > > > > > > Would They Be Using Gmail? If So You Could Have It Programed
> > With
> > > > IMAP!
>
> > > > > > > > On 12/01/2008, Jay-andro  wrote:
>
> > > > > > > > > I too want tosendemailprogrammtaically (i.e without
> > asendform).
> > > > > > > > > I've got it working with my hardcoded credentials, but I want
> > my
> > > > app
> > > > > > > > > to use the user's account tosendtheemailfrom the user's
> > account
> > > > > > > > > and receive replies to his account. How do I do this?
>
> > > > > > > > > On Nov 12, 10:51 am, "Sunit Katkar" 
> > > > wrote:
> > > > > > > > >> Thank you. I will try this.
>
> > > > > > > > >> On Wed, Nov 12, 2008 at 12:44 AM, Peli <
> > peli0...@googlemail.com>
> > > > wrote:
>
> > > > > > > > >> > You can find a code snippet here:
> > > > > > > > >> >http://www.openintents.org/en/node/121
>
> > > > > > > > >> > There is also a related SENDTO action which you can look
> > up in
> > > > the
> > > > > > > > >> > documentation.
>
> > > > > > > > >> > Peli
> > > > > > > > >> >www.openintents.

[android-developers] Re: How to send email programmatically?

2008-12-17 Thread dileep singh
Hi Peli,
 Is sending email stuff is supporting in android emulator sdk1.0 r2?:"Email
application is dere but when i am executing that code , message is appearing
that "no application can perform this action".A lot of people are having
this problem.So,please tell whats the reason ,eventhough email client is
dere.Do we need to add something xtra in manifestfile or what?
Thanks

On Wed, Dec 17, 2008 at 4:56 PM, Peli  wrote:

>
> Currently, the OpenIntents table seems to be more complete :-)
> http://www.openintents.org/en/intentstable
>
> (although there are still more intents that can be found in the
> original documentation: e.g.
> http://code.google.com/android/reference/android/content/Intent.html
> )
>
> Peli
> www.openintents.org
>
> On Dec 17, 2:49 am, "Dianne Hackborn"  wrote:
> > There is a lot of stuff missing from that doc.
> >
> >
> >
>  > On Tue, Dec 16, 2008 at 2:26 PM, filbert  wrote:
> >
> > > According to this page
> > >http://code.google.com/android/reference/available-intents.html
> > > the mailto: url is not supported by an intent...  unless it was simply
> > > left off the list by accident.  That is a possible explanation but my
> > > attempts to use mailto: in a URL result in errors..  unfortunately I
> > > cannot list the exact error here b/c I already switched to Peli's
> > > suggested method of emailing.
> >
> > > Siva, for your "no application" error my guess is that the android
> > > emulator does not have an e-mail application since it doesn't actually
> > > know who you are (you'll notice there is no email or gmail app in the
> > > emulator's app list).  I don't know if a developer phone would work
> > > either.  You may want to consider testing on a real phone and seeing
> > > if it works... that is what I plan to do once i get my app to a stable
> > > state.
> >
> > > On Dec 13, 10:31 pm, Siva G  wrote:
> > > > Hi,
> >
> > > > When I try this snippet I get a message saying "No Applications can
> > > > perform this action." Is there something else I should take care of
> > > > like in the manifest file?
> >
> > > > Thanks,
> > > > Siva G
> >
> > > > On Dec 12, 5:32 am, Peli  wrote:
> >
> > > > > Ok, the site is accessible now, but for future reference I copy the
> > > > > code from there:http://www.openintents.org/en/node/121
> >
> > > > > Intent sendIntent = new Intent(Intent.ACTION_SEND);
> > > > > sendIntent.putExtra(Intent.EXTRA_TEXT, "emailtext");
> > > > > sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Subject");
> > > > > sendIntent.setType("message/rfc822");
> > > > > startActivity(Intent.createChooser(sendIntent, "Title:"));
> >
> > > > > Peliwww.openintents.orgwww.openintents.biz
> >
> > > > > On Dec 6, 7:36 pm, "Sunit Katkar"  wrote:
> >
> > > > > >www.openintents.orgseemstobedown. I got to this thread after a
> long
>  > > time
> > > > > > and now that site is down :-(
> > > > > > - Sunit Katkarhttp://
> sunitkatkar.blogspot.com/-AndroidOSTutorials
> >
> > > > > > On Mon, Dec 1, 2008 at 6:06 PM, Xavier Mathews <
> > > xavieruni...@gmail.com>wrote:
> >
> > > > > > > Would They Be Using Gmail? If So You Could Have It Programed
> With
> > > IMAP!
> >
> > > > > > > On 12/01/2008, Jay-andro  wrote:
> >
> > > > > > > > I too want tosendemailprogrammtaically (i.e without
> asendform).
> > > > > > > > I've got it working with my hardcoded credentials, but I want
> my
> > > app
> > > > > > > > to use the user's account tosendtheemailfrom the user's
> account
> > > > > > > > and receive replies to his account. How do I do this?
> >
> > > > > > > > On Nov 12, 10:51 am, "Sunit Katkar" 
> > > wrote:
> > > > > > > >> Thank you. I will try this.
> >
> > > > > > > >> On Wed, Nov 12, 2008 at 12:44 AM, Peli <
> peli0...@googlemail.com>
> > > wrote:
> >
> > > > > > > >> > You can find a code snippet here:
> > > > > > > >> >http://www.openintents.org/en/node/121
> >
> > > > > > > >> > There is also a related SENDTO action which you can look
> up in
> > > the
> > > > > > > >> > documentation.
> >
> > > > > > > >> > Peli
> > > > > > > >> >www.openintents.org
> >
> > > > > > > >> > On Nov 12, 8:52 am, "Sunit Katkar"  >
> > > wrote:
> > > > > > > >> > > Ok how would I implement the 'sendform'. Do you mean
> that I
> > > should
> > > > > > > >> > launch a
> > > > > > > >> > > web browser and use some webmail type of application
> hosted
> > > on a
> > > > > > > >> > > server?
> > > > > > > >> > > I was thinking about theEmailOutbox. How can I put a
> simple
> > > text
> > > > > > > >> > message
> > > > > > > >> > > as anemailin the Outbox? I know I could do this long
> long
> > > ago with
> > > > > > > >> > > Palm
> > > > > > > >> > OS
> > > > > > > >> > > ver3.0. Hope there is a way to do it on Android.
> >
> > > > > > > >> > > - Sunit
> >
> > > > > > > >> > > On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess <
> > > abom...@gmail.com>
> > > > > > > >> > wrote:
> > > > > > > >> > > > If you don't want to direct the user to the
> > > typicalsendfo

[android-developers] Re: How to send email programmatically?

2008-12-17 Thread Peli

Currently, the OpenIntents table seems to be more complete :-)
http://www.openintents.org/en/intentstable

(although there are still more intents that can be found in the
original documentation: e.g. 
http://code.google.com/android/reference/android/content/Intent.html
)

Peli
www.openintents.org

On Dec 17, 2:49 am, "Dianne Hackborn"  wrote:
> There is a lot of stuff missing from that doc.
>
>
>
> On Tue, Dec 16, 2008 at 2:26 PM, filbert  wrote:
>
> > According to this page
> >http://code.google.com/android/reference/available-intents.html
> > the mailto: url is not supported by an intent...  unless it was simply
> > left off the list by accident.  That is a possible explanation but my
> > attempts to use mailto: in a URL result in errors..  unfortunately I
> > cannot list the exact error here b/c I already switched to Peli's
> > suggested method of emailing.
>
> > Siva, for your "no application" error my guess is that the android
> > emulator does not have an e-mail application since it doesn't actually
> > know who you are (you'll notice there is no email or gmail app in the
> > emulator's app list).  I don't know if a developer phone would work
> > either.  You may want to consider testing on a real phone and seeing
> > if it works... that is what I plan to do once i get my app to a stable
> > state.
>
> > On Dec 13, 10:31 pm, Siva G  wrote:
> > > Hi,
>
> > > When I try this snippet I get a message saying "No Applications can
> > > perform this action." Is there something else I should take care of
> > > like in the manifest file?
>
> > > Thanks,
> > > Siva G
>
> > > On Dec 12, 5:32 am, Peli  wrote:
>
> > > > Ok, the site is accessible now, but for future reference I copy the
> > > > code from there:http://www.openintents.org/en/node/121
>
> > > > Intent sendIntent = new Intent(Intent.ACTION_SEND);
> > > > sendIntent.putExtra(Intent.EXTRA_TEXT, "emailtext");
> > > > sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Subject");
> > > > sendIntent.setType("message/rfc822");
> > > > startActivity(Intent.createChooser(sendIntent, "Title:"));
>
> > > > Peliwww.openintents.orgwww.openintents.biz
>
> > > > On Dec 6, 7:36 pm, "Sunit Katkar"  wrote:
>
> > > > >www.openintents.orgseemstobedown. I got to this thread after a long
> > time
> > > > > and now that site is down :-(
> > > > > - Sunit Katkarhttp://sunitkatkar.blogspot.com/-AndroidOSTutorials
>
> > > > > On Mon, Dec 1, 2008 at 6:06 PM, Xavier Mathews <
> > xavieruni...@gmail.com>wrote:
>
> > > > > > Would They Be Using Gmail? If So You Could Have It Programed With
> > IMAP!
>
> > > > > > On 12/01/2008, Jay-andro  wrote:
>
> > > > > > > I too want tosendemailprogrammtaically (i.e without asendform).
> > > > > > > I've got it working with my hardcoded credentials, but I want my
> > app
> > > > > > > to use the user's account tosendtheemailfrom the user's account
> > > > > > > and receive replies to his account. How do I do this?
>
> > > > > > > On Nov 12, 10:51 am, "Sunit Katkar" 
> > wrote:
> > > > > > >> Thank you. I will try this.
>
> > > > > > >> On Wed, Nov 12, 2008 at 12:44 AM, Peli 
> > wrote:
>
> > > > > > >> > You can find a code snippet here:
> > > > > > >> >http://www.openintents.org/en/node/121
>
> > > > > > >> > There is also a related SENDTO action which you can look up in
> > the
> > > > > > >> > documentation.
>
> > > > > > >> > Peli
> > > > > > >> >www.openintents.org
>
> > > > > > >> > On Nov 12, 8:52 am, "Sunit Katkar" 
> > wrote:
> > > > > > >> > > Ok how would I implement the 'sendform'. Do you mean that I
> > should
> > > > > > >> > launch a
> > > > > > >> > > web browser and use some webmail type of application hosted
> > on a
> > > > > > >> > > server?
> > > > > > >> > > I was thinking about theEmailOutbox. How can I put a simple
> > text
> > > > > > >> > message
> > > > > > >> > > as anemailin the Outbox? I know I could do this long long
> > ago with
> > > > > > >> > > Palm
> > > > > > >> > OS
> > > > > > >> > > ver3.0. Hope there is a way to do it on Android.
>
> > > > > > >> > > - Sunit
>
> > > > > > >> > > On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess <
> > abom...@gmail.com>
> > > > > > >> > wrote:
> > > > > > >> > > > If you don't want to direct the user to the
> > typicalsendform,
> > > > > > then
> > > > > > >> > you're
> > > > > > >> > > > going to have to either try and adapt an existing java
> > based
> > > > > > mailer
> > > > > > >> > > > to
> > > > > > >> > > > android or write an SMTP client from scratch.  The SMTP
> > standard
> > > > > > >> > > > isn't
> > > > > > >> > too
> > > > > > >> > > > hard to implement.
>
> > > > > > >> > > > On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar <
> > > > > > sunitkat...@gmail.com
> > > > > > >> > >wrote:
>
> > > > > > >> > > >> Any ideas? Any pointers to some examples?
>
> > > > > > >> > > >> On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar
> > > > > > >> > > >>  > > > > > >> > >wrote:
>
> > > > > > >> > > >>> Suppose I have an Activity which has couple of text
> > fields - one
> > > > > 

[android-developers] Re: How to send email programmatically?

2008-12-16 Thread Dianne Hackborn
There is a lot of stuff missing from that doc.

On Tue, Dec 16, 2008 at 2:26 PM, filbert  wrote:

>
> According to this page
> http://code.google.com/android/reference/available-intents.html
> the mailto: url is not supported by an intent...  unless it was simply
> left off the list by accident.  That is a possible explanation but my
> attempts to use mailto: in a URL result in errors..  unfortunately I
> cannot list the exact error here b/c I already switched to Peli's
> suggested method of emailing.
>
> Siva, for your "no application" error my guess is that the android
> emulator does not have an e-mail application since it doesn't actually
> know who you are (you'll notice there is no email or gmail app in the
> emulator's app list).  I don't know if a developer phone would work
> either.  You may want to consider testing on a real phone and seeing
> if it works... that is what I plan to do once i get my app to a stable
> state.
>
> On Dec 13, 10:31 pm, Siva G  wrote:
> > Hi,
> >
> > When I try this snippet I get a message saying "No Applications can
> > perform this action." Is there something else I should take care of
> > like in the manifest file?
> >
> > Thanks,
> > Siva G
> >
> > On Dec 12, 5:32 am, Peli  wrote:
> >
> > > Ok, the site is accessible now, but for future reference I copy the
> > > code from there:http://www.openintents.org/en/node/121
> >
> > > Intent sendIntent = new Intent(Intent.ACTION_SEND);
> > > sendIntent.putExtra(Intent.EXTRA_TEXT, "emailtext");
> > > sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Subject");
> > > sendIntent.setType("message/rfc822");
> > > startActivity(Intent.createChooser(sendIntent, "Title:"));
> >
> > > Peliwww.openintents.orgwww.openintents.biz
> >
> > > On Dec 6, 7:36 pm, "Sunit Katkar"  wrote:
> >
> > > >www.openintents.orgseemstobe down. I got to this thread after a long
> time
> > > > and now that site is down :-(
> > > > - Sunit Katkarhttp://sunitkatkar.blogspot.com/-AndroidOS Tutorials
> >
> > > > On Mon, Dec 1, 2008 at 6:06 PM, Xavier Mathews <
> xavieruni...@gmail.com>wrote:
> >
> > > > > Would They Be Using Gmail? If So You Could Have It Programed With
> IMAP!
> >
> > > > > On 12/01/2008, Jay-andro  wrote:
> >
> > > > > > I too want tosendemailprogrammtaically (i.e without asendform).
> > > > > > I've got it working with my hardcoded credentials, but I want my
> app
> > > > > > to use the user's account tosendtheemailfrom the user's account
> > > > > > and receive replies to his account. How do I do this?
> >
> > > > > > On Nov 12, 10:51 am, "Sunit Katkar" 
> wrote:
> > > > > >> Thank you. I will try this.
> >
> > > > > >> On Wed, Nov 12, 2008 at 12:44 AM, Peli 
> wrote:
> >
> > > > > >> > You can find a code snippet here:
> > > > > >> >http://www.openintents.org/en/node/121
> >
> > > > > >> > There is also a related SENDTO action which you can look up in
> the
> > > > > >> > documentation.
> >
> > > > > >> > Peli
> > > > > >> >www.openintents.org
> >
> > > > > >> > On Nov 12, 8:52 am, "Sunit Katkar" 
> wrote:
> > > > > >> > > Ok how would I implement the 'sendform'. Do you mean that I
> should
> > > > > >> > launch a
> > > > > >> > > web browser and use some webmail type of application hosted
> on a
> > > > > >> > > server?
> > > > > >> > > I was thinking about theEmailOutbox. How can I put a simple
> text
> > > > > >> > message
> > > > > >> > > as anemailin the Outbox? I know I could do this long long
> ago with
> > > > > >> > > Palm
> > > > > >> > OS
> > > > > >> > > ver3.0. Hope there is a way to do it on Android.
> >
> > > > > >> > > - Sunit
> >
> > > > > >> > > On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess <
> abom...@gmail.com>
> > > > > >> > wrote:
> > > > > >> > > > If you don't want to direct the user to the
> typicalsendform,
> > > > > then
> > > > > >> > you're
> > > > > >> > > > going to have to either try and adapt an existing java
> based
> > > > > mailer
> > > > > >> > > > to
> > > > > >> > > > android or write an SMTP client from scratch.  The SMTP
> standard
> > > > > >> > > > isn't
> > > > > >> > too
> > > > > >> > > > hard to implement.
> >
> > > > > >> > > > On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar <
> > > > > sunitkat...@gmail.com
> > > > > >> > >wrote:
> >
> > > > > >> > > >> Any ideas? Any pointers to some examples?
> >
> > > > > >> > > >> On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar
> > > > > >> > > >>  > > > > >> > >wrote:
> >
> > > > > >> > > >>> Suppose I have an Activity which has couple of text
> fields - one
> > > > > >> > > >>> for
> > > > > >> > the
> > > > > >> > > >>> subject and one for body text.
> > > > > >> > > >>> And there is a simple Button. When user clicks the
> button, I
> > > > > wish
> > > > > >> > > >>> to
> > > > > >> >send
> > > > > >> > > >>> the text in the textfields viaemailto a
> predeterminedemail
> > > > > >> > address.
> > > > > >> > > >>> How can I achieve this?
> >
> > > > > >> > > >>> Sorry for being lazy and not looking up the SDK docs :)
> >
> > > > > >> > > >>> PS: I have confi

[android-developers] Re: How to send email programmatically?

2008-12-16 Thread filbert

According to this page 
http://code.google.com/android/reference/available-intents.html
the mailto: url is not supported by an intent...  unless it was simply
left off the list by accident.  That is a possible explanation but my
attempts to use mailto: in a URL result in errors..  unfortunately I
cannot list the exact error here b/c I already switched to Peli's
suggested method of emailing.

Siva, for your "no application" error my guess is that the android
emulator does not have an e-mail application since it doesn't actually
know who you are (you'll notice there is no email or gmail app in the
emulator's app list).  I don't know if a developer phone would work
either.  You may want to consider testing on a real phone and seeing
if it works... that is what I plan to do once i get my app to a stable
state.

On Dec 13, 10:31 pm, Siva G  wrote:
> Hi,
>
> When I try this snippet I get a message saying "No Applications can
> perform this action." Is there something else I should take care of
> like in the manifest file?
>
> Thanks,
> Siva G
>
> On Dec 12, 5:32 am, Peli  wrote:
>
> > Ok, the site is accessible now, but for future reference I copy the
> > code from there:http://www.openintents.org/en/node/121
>
> > Intent sendIntent = new Intent(Intent.ACTION_SEND);
> > sendIntent.putExtra(Intent.EXTRA_TEXT, "emailtext");
> > sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Subject");
> > sendIntent.setType("message/rfc822");
> > startActivity(Intent.createChooser(sendIntent, "Title:"));
>
> > Peliwww.openintents.orgwww.openintents.biz
>
> > On Dec 6, 7:36 pm, "Sunit Katkar"  wrote:
>
> > >www.openintents.orgseemstobe down. I got to this thread after a long time
> > > and now that site is down :-(
> > > - Sunit Katkarhttp://sunitkatkar.blogspot.com/-AndroidOS Tutorials
>
> > > On Mon, Dec 1, 2008 at 6:06 PM, Xavier Mathews 
> > > wrote:
>
> > > > Would They Be Using Gmail? If So You Could Have It Programed With IMAP!
>
> > > > On 12/01/2008, Jay-andro  wrote:
>
> > > > > I too want tosendemailprogrammtaically (i.e without asendform).
> > > > > I've got it working with my hardcoded credentials, but I want my app
> > > > > to use the user's account tosendtheemailfrom the user's account
> > > > > and receive replies to his account. How do I do this?
>
> > > > > On Nov 12, 10:51 am, "Sunit Katkar"  wrote:
> > > > >> Thank you. I will try this.
>
> > > > >> On Wed, Nov 12, 2008 at 12:44 AM, Peli  
> > > > >> wrote:
>
> > > > >> > You can find a code snippet here:
> > > > >> >http://www.openintents.org/en/node/121
>
> > > > >> > There is also a related SENDTO action which you can look up in the
> > > > >> > documentation.
>
> > > > >> > Peli
> > > > >> >www.openintents.org
>
> > > > >> > On Nov 12, 8:52 am, "Sunit Katkar"  wrote:
> > > > >> > > Ok how would I implement the 'sendform'. Do you mean that I 
> > > > >> > > should
> > > > >> > launch a
> > > > >> > > web browser and use some webmail type of application hosted on a
> > > > >> > > server?
> > > > >> > > I was thinking about theEmailOutbox. How can I put a simple text
> > > > >> > message
> > > > >> > > as anemailin the Outbox? I know I could do this long long ago 
> > > > >> > > with
> > > > >> > > Palm
> > > > >> > OS
> > > > >> > > ver3.0. Hope there is a way to do it on Android.
>
> > > > >> > > - Sunit
>
> > > > >> > > On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess 
> > > > >> > > 
> > > > >> > wrote:
> > > > >> > > > If you don't want to direct the user to the typicalsendform,
> > > > then
> > > > >> > you're
> > > > >> > > > going to have to either try and adapt an existing java based
> > > > mailer
> > > > >> > > > to
> > > > >> > > > android or write an SMTP client from scratch.  The SMTP 
> > > > >> > > > standard
> > > > >> > > > isn't
> > > > >> > too
> > > > >> > > > hard to implement.
>
> > > > >> > > > On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar <
> > > > sunitkat...@gmail.com
> > > > >> > >wrote:
>
> > > > >> > > >> Any ideas? Any pointers to some examples?
>
> > > > >> > > >> On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar
> > > > >> > > >>  > > > >> > >wrote:
>
> > > > >> > > >>> Suppose I have an Activity which has couple of text fields - 
> > > > >> > > >>> one
> > > > >> > > >>> for
> > > > >> > the
> > > > >> > > >>> subject and one for body text.
> > > > >> > > >>> And there is a simple Button. When user clicks the button, I
> > > > wish
> > > > >> > > >>> to
> > > > >> >send
> > > > >> > > >>> the text in the textfields viaemailto a predeterminedemail
> > > > >> > address.
> > > > >> > > >>> How can I achieve this?
>
> > > > >> > > >>> Sorry for being lazy and not looking up the SDK docs :)
>
> > > > >> > > >>> PS: I have configured theEMAILapp on G1 using theEmailsetup
> > > > >> > steps, so
> > > > >> > > >>> it can receive andsendemailfrom myemailaccount.
>
> > > > >> > > >>> --
> > > > >> > > >>> - Sunit Katkar
> > > > >> > > >>>http://sunitkatkar.blogspot.com/-AndroidOSTutorials
>
> > > > >> > > >> --
> > > > >> > > >> - Sunit Katkar

[android-developers] Re: How to send email programmatically?

2008-12-15 Thread Mark Murphy

Siva G wrote:
> When I try this snippet I get a message saying "No Applications can
> perform this action." Is there something else I should take care of
> like in the manifest file?

An application needs to be on the device or emulator that knows how to 
handle ACTION_SEND of MIME type "message/rfc822".

So, for example, on the 1.0r1 emulator, there is no such application 
(AFAIK).

Reputedly, 1.0r2 has the email application built in, and this problem 
occurs there too. That I can't explain, but I haven't experimented with 
1.0r2 just yet.

You should not be getting this error on a G1 or, presumably, the Android 
Dev Phone 1.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 Available!

--~--~-~--~~~---~--~~
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: How to send email programmatically?

2008-12-15 Thread Siva G

Hi,

When I try this snippet I get a message saying "No Applications can
perform this action." Is there something else I should take care of
like in the manifest file?

Thanks,
Siva G

On Dec 12, 5:32 am, Peli  wrote:
> Ok, the site is accessible now, but for future reference I copy the
> code from there:http://www.openintents.org/en/node/121
>
> Intent sendIntent = new Intent(Intent.ACTION_SEND);
> sendIntent.putExtra(Intent.EXTRA_TEXT, "email text");
> sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Subject");
> sendIntent.setType("message/rfc822");
> startActivity(Intent.createChooser(sendIntent, "Title:"));
>
> Peliwww.openintents.orgwww.openintents.biz
>
> On Dec 6, 7:36 pm, "Sunit Katkar"  wrote:
>
> >www.openintents.orgseemsto be down. I got to this thread after a long time
> > and now that site is down :-(
> > - Sunit Katkarhttp://sunitkatkar.blogspot.com/-Android OS Tutorials
>
> > On Mon, Dec 1, 2008 at 6:06 PM, Xavier Mathews 
> > wrote:
>
> > > Would They Be Using Gmail? If So You Could Have It Programed With IMAP!
>
> > > On 12/01/2008, Jay-andro  wrote:
>
> > > > I too want to send email programmtaically (i.e without a send form).
> > > > I've got it working with my hardcoded credentials, but I want my app
> > > > to use the user's account to send the email from the user's account
> > > > and receive replies to his account. How do I do this?
>
> > > > On Nov 12, 10:51 am, "Sunit Katkar"  wrote:
> > > >> Thank you. I will try this.
>
> > > >> On Wed, Nov 12, 2008 at 12:44 AM, Peli  wrote:
>
> > > >> > You can find a code snippet here:
> > > >> >http://www.openintents.org/en/node/121
>
> > > >> > There is also a related SENDTO action which you can look up in the
> > > >> > documentation.
>
> > > >> > Peli
> > > >> >www.openintents.org
>
> > > >> > On Nov 12, 8:52 am, "Sunit Katkar"  wrote:
> > > >> > > Ok how would I implement the 'send form'. Do you mean that I should
> > > >> > launch a
> > > >> > > web browser and use some webmail type of application hosted on a
> > > >> > > server?
> > > >> > > I was thinking about the Email Outbox. How can I put a simple text
> > > >> > message
> > > >> > > as an email in the Outbox? I know I could do this long long ago 
> > > >> > > with
> > > >> > > Palm
> > > >> > OS
> > > >> > > ver3.0. Hope there is a way to do it on Android.
>
> > > >> > > - Sunit
>
> > > >> > > On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess 
> > > >> > wrote:
> > > >> > > > If you don't want to direct the user to the typical send form,
> > > then
> > > >> > you're
> > > >> > > > going to have to either try and adapt an existing java based
> > > mailer
> > > >> > > > to
> > > >> > > > android or write an SMTP client from scratch.  The SMTP standard
> > > >> > > > isn't
> > > >> > too
> > > >> > > > hard to implement.
>
> > > >> > > > On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar <
> > > sunitkat...@gmail.com
> > > >> > >wrote:
>
> > > >> > > >> Any ideas? Any pointers to some examples?
>
> > > >> > > >> On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar
> > > >> > > >>  > > >> > >wrote:
>
> > > >> > > >>> Suppose I have an Activity which has couple of text fields - 
> > > >> > > >>> one
> > > >> > > >>> for
> > > >> > the
> > > >> > > >>> subject and one for body text.
> > > >> > > >>> And there is a simple Button. When user clicks the button, I
> > > wish
> > > >> > > >>> to
> > > >> > send
> > > >> > > >>> the text in the textfields via email to a predetermined email
> > > >> > address.
> > > >> > > >>> How can I achieve this?
>
> > > >> > > >>> Sorry for being lazy and not looking up the SDK docs :)
>
> > > >> > > >>> PS: I have configured the EMAIL app on G1 using the Email setup
> > > >> > steps, so
> > > >> > > >>> it can receive and send email from my email account.
>
> > > >> > > >>> --
> > > >> > > >>> - Sunit Katkar
> > > >> > > >>>http://sunitkatkar.blogspot.com/-AndroidOSTutorials
>
> > > >> > > >> --
> > > >> > > >> - Sunit Katkar
> > > >> > > >>http://sunitkatkar.blogspot.com/-AndroidOSTutorials
>
> > > >> > > > --
> > > >> > > > Andrew Burgess
>
> > > >> > > --
> > > >> > > - Sunit Katkarhttp://sunitkatkar.blogspot.com/-AndroidOSTutorials
>
> > > >> --
> > > >> - Sunit Katkarhttp://sunitkatkar.blogspot.com/-AndroidOS Tutorials
>
> > > --
> > > Xavier A. Mathews
> > > Student/Browser Specialist/Developer/Web-Master
> > > Google Group Client Based Tech Support Specialist
> > > Hazel Crest Illinois
> > > xavieruni...@gmail.com¥xavieruni...@hotmail.com¥truestar...@yahoo.com
> > > "Fear of a name, only increases fear of the thing itself."

--~--~-~--~~~---~--~~
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: How to send email programmatically?

2008-12-12 Thread Peli

Ok, the site is accessible now, but for future reference I copy the
code from there:
http://www.openintents.org/en/node/121

Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, "email text");
sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Subject");
sendIntent.setType("message/rfc822");
startActivity(Intent.createChooser(sendIntent, "Title:"));

Peli
www.openintents.org
www.openintents.biz

On Dec 6, 7:36 pm, "Sunit Katkar"  wrote:
> www.openintents.orgseems to be down. I got to this thread after a long time
> and now that site is down :-(
> - Sunit Katkarhttp://sunitkatkar.blogspot.com/- Android OS Tutorials
>
> On Mon, Dec 1, 2008 at 6:06 PM, Xavier Mathews wrote:
>
>
>
> > Would They Be Using Gmail? If So You Could Have It Programed With IMAP!
>
> > On 12/01/2008, Jay-andro  wrote:
>
> > > I too want to send email programmtaically (i.e without a send form).
> > > I've got it working with my hardcoded credentials, but I want my app
> > > to use the user's account to send the email from the user's account
> > > and receive replies to his account. How do I do this?
>
> > > On Nov 12, 10:51 am, "Sunit Katkar"  wrote:
> > >> Thank you. I will try this.
>
> > >> On Wed, Nov 12, 2008 at 12:44 AM, Peli  wrote:
>
> > >> > You can find a code snippet here:
> > >> >http://www.openintents.org/en/node/121
>
> > >> > There is also a related SENDTO action which you can look up in the
> > >> > documentation.
>
> > >> > Peli
> > >> >www.openintents.org
>
> > >> > On Nov 12, 8:52 am, "Sunit Katkar"  wrote:
> > >> > > Ok how would I implement the 'send form'. Do you mean that I should
> > >> > launch a
> > >> > > web browser and use some webmail type of application hosted on a
> > >> > > server?
> > >> > > I was thinking about the Email Outbox. How can I put a simple text
> > >> > message
> > >> > > as an email in the Outbox? I know I could do this long long ago with
> > >> > > Palm
> > >> > OS
> > >> > > ver3.0. Hope there is a way to do it on Android.
>
> > >> > > - Sunit
>
> > >> > > On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess 
> > >> > wrote:
> > >> > > > If you don't want to direct the user to the typical send form,
> > then
> > >> > you're
> > >> > > > going to have to either try and adapt an existing java based
> > mailer
> > >> > > > to
> > >> > > > android or write an SMTP client from scratch.  The SMTP standard
> > >> > > > isn't
> > >> > too
> > >> > > > hard to implement.
>
> > >> > > > On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar <
> > sunitkat...@gmail.com
> > >> > >wrote:
>
> > >> > > >> Any ideas? Any pointers to some examples?
>
> > >> > > >> On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar
> > >> > > >>  > >> > >wrote:
>
> > >> > > >>> Suppose I have an Activity which has couple of text fields - one
> > >> > > >>> for
> > >> > the
> > >> > > >>> subject and one for body text.
> > >> > > >>> And there is a simple Button. When user clicks the button, I
> > wish
> > >> > > >>> to
> > >> > send
> > >> > > >>> the text in the textfields via email to a predetermined email
> > >> > address.
> > >> > > >>> How can I achieve this?
>
> > >> > > >>> Sorry for being lazy and not looking up the SDK docs :)
>
> > >> > > >>> PS: I have configured the EMAIL app on G1 using the Email setup
> > >> > steps, so
> > >> > > >>> it can receive and send email from my email account.
>
> > >> > > >>> --
> > >> > > >>> - Sunit Katkar
> > >> > > >>>http://sunitkatkar.blogspot.com/-AndroidOS Tutorials
>
> > >> > > >> --
> > >> > > >> - Sunit Katkar
> > >> > > >>http://sunitkatkar.blogspot.com/-AndroidOS Tutorials
>
> > >> > > > --
> > >> > > > Andrew Burgess
>
> > >> > > --
> > >> > > - Sunit Katkarhttp://sunitkatkar.blogspot.com/-AndroidOS Tutorials
>
> > >> --
> > >> - Sunit Katkarhttp://sunitkatkar.blogspot.com/-Android OS Tutorials
>
> > --
> > Xavier A. Mathews
> > Student/Browser Specialist/Developer/Web-Master
> > Google Group Client Based Tech Support Specialist
> > Hazel Crest Illinois
> > xavieruni...@gmail.com¥xavieruni...@hotmail.com¥truestar...@yahoo.com
> > "Fear of a name, only increases fear of the thing itself."
--~--~-~--~~~---~--~~
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: How to send email programmatically?

2008-12-11 Thread Mark Murphy

Andrew Stadler wrote:
> This is already supported in both the Email and Gmail apps.

U...are you sure about that?

String 
url="mailto:f...@bar.com?subject=this%20is%20the%20subject&body=This%20is%20the%20body";;

This mailto URL works nicely in Firefox (Linux and WinXP) and Internet 
Explorer (WinXP), and android.net.MailTo parses it just fine. In the 
case of the browsers, it pops open a message in the default mail program 
with the addressee, subject, and body populated.

However:

startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));

This pops up the mail app chooser (Email vs. Google Mail), as expected. 
However, neither parse out the subject or the body, leaving those blank. 
Heck, Mail doesn't even seem to parse out the addressee, leaving that 
blank; Google Mail has the addressee as "f...@gmail.com".

Now, if I use java.net.URLEncoder on the component parts, I get the same 
mailto: URL, except %20 is replaced by +. If I try that URL, Mail slams 
the whole mailto: (minus the scheme) in the To: field, and Google Mail 
behaves as before. Since the use of + signs seems to violate RFC 2368 
for mailto: URLs, and since Firefox seemed to like %20 better, I figure 
that's the better answer.

Issue 978 reports the same behavior. I have added these comments there 
as well.

But, if you think this is supposed to work, I feel like I'm missing 
something.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 Published!

--~--~-~--~~~---~--~~
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: How to send email programmatically?

2008-12-10 Thread Andrew Stadler

David-

This is already supported in both the Email and Gmail apps.  Is there
a reason that you believed that it wasn't?

Here is the raw Javadoc straight from Intent.ACTION_VIEW:

/**
 * Activity Action: Display the data to the user.  This is the most common
 * action performed on data -- it is the generic action you can use on
 * a piece of data to get the most reasonable thing to occur.  For example,
 * when used on a contacts entry it will view the entry; when used on a
 * mailto: URI it will bring up a compose window filled with the information
 * supplied by the URI; when used with a tel: URI it will invoke the
 * dialer.
 * Input: [EMAIL PROTECTED] #getData} is URI from which to retrieve data.
 * Output: nothing.
 */

So all you have to do is create an intent with the ACTION_VIEW action,
a "mailto:"; scheme in the Uri, and send it.

Hope this helps.
--Andy

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to send email programmatically?

2008-12-10 Thread David Given

Mark Murphy wrote:
[...]
> Those cases all require you to send emails. You can do this today. You 
> need to get yourself a Java JAR that supports SMTP, ask the user for 
> SMTP credentials (server, from address, SMTP authentication settings, 
> etc.), and you're set.

Speaking as a user, I don't want an app sending mail on my behalf, ever
--- especially if it's through my account!

But I *would* like an API that allows an app to launch the email
application of my choice, with subject, recipient and body filled in, so
that I can inspect it and press SEND if I choose. This has another
advantage that it ought to be really easy to implement, requiring only a
standardised intent with the data packed into it --- e.g.
mailto://[EMAIL PROTECTED]&body=Body, which is not only how
the web does it, but is also a standard:

http://www.rfc-editor.org/rfc/rfc2368.txt

Am I right in thinking that the only thing this needs to work is that
email apps declare themselves as supporting the mailto: data scheme? Do
any Android email apps do this already?

-- 
David Given
[EMAIL PROTECTED]

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to send email programmatically?

2008-12-10 Thread nt94043

On Dec 9, 12:47 pm, "Dianne Hackborn" <[EMAIL PROTECTED]> wrote:
> There is no standard settings dialog, we already have to e-mail apps that
> are very different: gmail and email.  I don't think it makes sense to try to
> come up with a general-purpose UI for this as part of the platform, though
> of course making one that others can re-use embedded in their apps would be
> great.

I don't think a general-purpose UI for sending email sounds useful,
but a general-purpose API for email definitely sounds useful.
Obviously, it would have to be a privilege you grant an application
("access your email" and "send email on your behalf" seem like
good candidates), but given that the phone is so connected to my
gmail account, I was really surprised to not be allowed to take
advantage of it from my own apps.  For example, one of the first
apps I wanted to write was something that would hook into an
"incoming mail" notification and play custom notification sounds
based on simple message-matching rules.  I don't think it's doable
unless I want to duplicate IMAP client functionality and force the
user to provide/manage duplicate credentials.  Pretty lame from
a platform standpoint.

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to send email programmatically?

2008-12-09 Thread Dianne Hackborn
On Tue, Dec 9, 2008 at 10:47 AM, Brad Gies <[EMAIL PROTECTED]> wrote:

> Does android have a standardized email settings dialog box we can invoke?
> Or
> do we have to roll our own?


There is no standard settings dialog, we already have to e-mail apps that
are very different: gmail and email.  I don't think it makes sense to try to
come up with a general-purpose UI for this as part of the platform, though
of course making one that others can re-use embedded in their apps would be
great.

-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to send email programmatically?

2008-12-09 Thread Brad Gies



I don't think having the user enter their email information one time for
each app that needs it a big deal. 

Does android have a standardized email settings dialog box we can invoke? Or
do we have to roll our own?

If there isn't one already that would be a great little project for someone
that wants to make a contribution to the community. I'll do it myself when I
get to that part of my application if it's not already done. 




Sincerely,
 
Brad Gies
 
 
-
Brad Gies
27415 Greenfield Rd, # 2,
Southfield, MI, USA
48076
www.bgies.com  www.truckerphone.com 
www.EDI-Easy.com  www.pricebunny.com
-
 
Moderation in everything, including abstinence

-Original Message-
From: android-developers@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Murphy
Sent: Tuesday, December 09, 2008 8:17 AM
To: android-developers@googlegroups.com
Subject: [android-developers] Re: How to send email programmatically?


Jay-andro wrote:
> I would ideally like an
> android api that protects this info and just allows my app to invoke a
> sendmail method with subject, body etc. Under the covers the api would
> access the personal account credentials of so it can connect to the
> smtp server.

As a user, I would find this completely unacceptable. But, that's just me.

> Second, consider the following use cases where this requirement comes
> up:



--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to send email programmatically?

2008-12-09 Thread Mark Murphy

Jay-andro wrote:
> I would ideally like an
> android api that protects this info and just allows my app to invoke a
> sendmail method with subject, body etc. Under the covers the api would
> access the personal account credentials of so it can connect to the
> smtp server.

As a user, I would find this completely unacceptable. But, that's just me.

> Second, consider the following use cases where this requirement comes
> up:

Those cases all require you to send emails. You can do this today. You 
need to get yourself a Java JAR that supports SMTP, ask the user for 
SMTP credentials (server, from address, SMTP authentication settings, 
etc.), and you're set.

I can see the argument that it would be nice to have an option where the 
user didn't have to configure that email information again. However, 
please understand that under no circumstances you should be assuming 
that the user *wants* you to use the pre-configured account for any of 
these situations. Hence, you're going to need to support allowing the 
user to specify alternative SMTP credentials, anyway.

Long term, I can definitely see where Android might evolve a 
general-purpose email service, where the user can create multiple 
accounts, and it is easy for applications to allow the user to choose 
which of those accounts to use (or launch an activity to define a new 
account, etc.). However, as with any open source project, how long the 
"long" in "long term" is depends on who all has itches and decides to 
scratch them.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 Available!

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to send email programmatically?

2008-12-08 Thread Dianne Hackborn
Btw, you can probably get away with doing this with little to no platform
changes at all, by defining an intent protocol that is similar to the
existing one but doesn't require presenting a UI.  There are still some
important security, user interaction, and management issues that would need
to be addressed though, such as what to do with multiple e-mail apps with
multiple accounts.

Anyway, the point is that this is an open source project.  You aren't
dependent on Google for things, you don't have to sit here begging for
people to give you features you want, if you feel strongly about something
you can make it happen.

On Mon, Dec 8, 2008 at 9:31 PM, Dianne Hackborn <[EMAIL PROTECTED]> wrote:

> If you want a feature like this, feel free to look at submitting a patch to
> the platform.  You'll want to talk with people in the platform group about
> the security implications of doing so, so we can have a patch that we are
> comfortable with.  This is probably way down on the priority list for the
> core platform work, so I doubt a feature like it would be added without
> someone who wants it coming in and making it happen.
>
>
> On Mon, Dec 8, 2008 at 8:44 PM, Jay-andro <[EMAIL PROTECTED]> wrote:
>
>>
>> Diane
>> I accept (with a heavy heart :-( that Google is not interested in
>> providing for this, but I do believe it is a valid requirement.
>>
>> First let me clarify that I have no interest in accessing the user's
>> personal account information from my app. I would ideally like an
>> android api that protects this info and just allows my app to invoke a
>> sendmail method with subject, body etc. Under the covers the api would
>> access the personal account credentials of so it can connect to the
>> smtp server.
>>
>> Second, consider the following use cases where this requirement comes
>> up:
>> - A salesforce phone app is set up to always send an email to the
>> sales supervisor when a customer support person updates a customer
>> ticket. The email is automatic and informational
>> - A service rep (cable guy) app is set up to automatically email the
>> service supervisor, when a rep leaves the location of his/her last
>> service order.
>> - A game is set up to automatically email the highest score to all
>> members of a game-group
>> In all cases, the app would advertise the auto-email as a feature,
>> that the user can opt into or out of.
>>
>> thx
>> jay
>>
>> On Dec 6, 2:13 pm, "Dianne Hackborn" <[EMAIL PROTECTED]> wrote:
>> > You need to go through the UI of the mailer activity, so the user can
>> select
>> > which app to use etc.  Adding support for allowing applications to get
>> at
>> > the user's personal e-mail information and send on their behalf without
>> > their interaction (but some other way to inform them that the app is
>> doing
>> > this) is not a high priority for the platform; actually, I would
>> personally
>> > much prefer that apps go through the mail UI so the user can be aware of
>> and
>> > confirm whatever some non-mail app is sending on their behalf.
>> >
>> > As a user, wouldn't you prefer this too? :}
>> >
>> >
>> >
>> > On Mon, Dec 1, 2008 at 4:23 PM, Jay-andro <[EMAIL PROTECTED]> wrote:
>> >
>> > > I too want to send email programmtaically (i.e without a send form).
>> > > I've got it working with my hardcoded credentials, but I want my app
>> > > to use the user's account to send the email from the user's account
>> > > and receive replies to his account. How do I do this?
>> >
>> > > On Nov 12, 10:51 am, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
>> > > > Thank you. I will try this.
>> >
>> > > > On Wed, Nov 12, 2008 at 12:44 AM, Peli <[EMAIL PROTECTED]>
>> wrote:
>> >
>> > > > > You can find a code snippet here:
>> > > > >http://www.openintents.org/en/node/121
>> >
>> > > > > There is also a related SENDTO action which you can look up in the
>> > > > > documentation.
>> >
>> > > > > Peli
>> > > > >www.openintents.org
>> >
>> > > > > On Nov 12, 8:52 am, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
>> > > > > > Ok how would I implement the 'send form'. Do you mean that I
>> should
>> > > > > launch a
>> > > > > > web browser and use some webmail type of application hosted on a
>> > > server?
>> > > > > > I was thinking about the Email Outbox. How can I put a simple
>> text
>> > > > > message
>> > > > > > as an email in the Outbox? I know I could do this long long ago
>> with
>> > > Palm
>> > > > > OS
>> > > > > > ver3.0. Hope there is a way to do it on Android.
>> >
>> > > > > > - Sunit
>> >
>> > > > > > On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess <
>> [EMAIL PROTECTED]>
>> > > > > wrote:
>> > > > > > > If you don't want to direct the user to the typical send form,
>> then
>> > > > > you're
>> > > > > > > going to have to either try and adapt an existing java based
>> mailer
>> > > to
>> > > > > > > android or write an SMTP client from scratch.  The SMTP
>> standard
>> > > isn't
>> > > > > too
>> > > > > > > hard to implement.
>> >
>> > > > > > > On Tue, Nov 11, 2008 at 

[android-developers] Re: How to send email programmatically?

2008-12-08 Thread Dianne Hackborn
If you want a feature like this, feel free to look at submitting a patch to
the platform.  You'll want to talk with people in the platform group about
the security implications of doing so, so we can have a patch that we are
comfortable with.  This is probably way down on the priority list for the
core platform work, so I doubt a feature like it would be added without
someone who wants it coming in and making it happen.

On Mon, Dec 8, 2008 at 8:44 PM, Jay-andro <[EMAIL PROTECTED]> wrote:

>
> Diane
> I accept (with a heavy heart :-( that Google is not interested in
> providing for this, but I do believe it is a valid requirement.
>
> First let me clarify that I have no interest in accessing the user's
> personal account information from my app. I would ideally like an
> android api that protects this info and just allows my app to invoke a
> sendmail method with subject, body etc. Under the covers the api would
> access the personal account credentials of so it can connect to the
> smtp server.
>
> Second, consider the following use cases where this requirement comes
> up:
> - A salesforce phone app is set up to always send an email to the
> sales supervisor when a customer support person updates a customer
> ticket. The email is automatic and informational
> - A service rep (cable guy) app is set up to automatically email the
> service supervisor, when a rep leaves the location of his/her last
> service order.
> - A game is set up to automatically email the highest score to all
> members of a game-group
> In all cases, the app would advertise the auto-email as a feature,
> that the user can opt into or out of.
>
> thx
> jay
>
> On Dec 6, 2:13 pm, "Dianne Hackborn" <[EMAIL PROTECTED]> wrote:
> > You need to go through the UI of the mailer activity, so the user can
> select
> > which app to use etc.  Adding support for allowing applications to get at
> > the user's personal e-mail information and send on their behalf without
> > their interaction (but some other way to inform them that the app is
> doing
> > this) is not a high priority for the platform; actually, I would
> personally
> > much prefer that apps go through the mail UI so the user can be aware of
> and
> > confirm whatever some non-mail app is sending on their behalf.
> >
> > As a user, wouldn't you prefer this too? :}
> >
> >
> >
> > On Mon, Dec 1, 2008 at 4:23 PM, Jay-andro <[EMAIL PROTECTED]> wrote:
> >
> > > I too want to send email programmtaically (i.e without a send form).
> > > I've got it working with my hardcoded credentials, but I want my app
> > > to use the user's account to send the email from the user's account
> > > and receive replies to his account. How do I do this?
> >
> > > On Nov 12, 10:51 am, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
> > > > Thank you. I will try this.
> >
> > > > On Wed, Nov 12, 2008 at 12:44 AM, Peli <[EMAIL PROTECTED]>
> wrote:
> >
> > > > > You can find a code snippet here:
> > > > >http://www.openintents.org/en/node/121
> >
> > > > > There is also a related SENDTO action which you can look up in the
> > > > > documentation.
> >
> > > > > Peli
> > > > >www.openintents.org
> >
> > > > > On Nov 12, 8:52 am, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
> > > > > > Ok how would I implement the 'send form'. Do you mean that I
> should
> > > > > launch a
> > > > > > web browser and use some webmail type of application hosted on a
> > > server?
> > > > > > I was thinking about the Email Outbox. How can I put a simple
> text
> > > > > message
> > > > > > as an email in the Outbox? I know I could do this long long ago
> with
> > > Palm
> > > > > OS
> > > > > > ver3.0. Hope there is a way to do it on Android.
> >
> > > > > > - Sunit
> >
> > > > > > On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess <
> [EMAIL PROTECTED]>
> > > > > wrote:
> > > > > > > If you don't want to direct the user to the typical send form,
> then
> > > > > you're
> > > > > > > going to have to either try and adapt an existing java based
> mailer
> > > to
> > > > > > > android or write an SMTP client from scratch.  The SMTP
> standard
> > > isn't
> > > > > too
> > > > > > > hard to implement.
> >
> > > > > > > On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar <
> > > [EMAIL PROTECTED]
> > > > > >wrote:
> >
> > > > > > >> Any ideas? Any pointers to some examples?
> >
> > > > > > >> On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar <
> > > [EMAIL PROTECTED]
> > > > > >wrote:
> >
> > > > > > >>> Suppose I have an Activity which has couple of text fields -
> one
> > > for
> > > > > the
> > > > > > >>> subject and one for body text.
> > > > > > >>> And there is a simple Button. When user clicks the button, I
> wish
> > > to
> > > > > send
> > > > > > >>> the text in the textfields via email to a predetermined email
> > > > > address.
> > > > > > >>> How can I achieve this?
> >
> > > > > > >>> Sorry for being lazy and not looking up the SDK docs :)
> >
> > > > > > >>> PS: I have configured the EMAIL app on G1 using the Email
> setup
> > > > > steps, so
> >

[android-developers] Re: How to send email programmatically?

2008-12-08 Thread Jay-andro

Diane
I accept (with a heavy heart :-( that Google is not interested in
providing for this, but I do believe it is a valid requirement.

First let me clarify that I have no interest in accessing the user's
personal account information from my app. I would ideally like an
android api that protects this info and just allows my app to invoke a
sendmail method with subject, body etc. Under the covers the api would
access the personal account credentials of so it can connect to the
smtp server.

Second, consider the following use cases where this requirement comes
up:
- A salesforce phone app is set up to always send an email to the
sales supervisor when a customer support person updates a customer
ticket. The email is automatic and informational
- A service rep (cable guy) app is set up to automatically email the
service supervisor, when a rep leaves the location of his/her last
service order.
- A game is set up to automatically email the highest score to all
members of a game-group
In all cases, the app would advertise the auto-email as a feature,
that the user can opt into or out of.

thx
jay

On Dec 6, 2:13 pm, "Dianne Hackborn" <[EMAIL PROTECTED]> wrote:
> You need to go through the UI of the mailer activity, so the user can select
> which app to use etc.  Adding support for allowing applications to get at
> the user's personal e-mail information and send on their behalf without
> their interaction (but some other way to inform them that the app is doing
> this) is not a high priority for the platform; actually, I would personally
> much prefer that apps go through the mail UI so the user can be aware of and
> confirm whatever some non-mail app is sending on their behalf.
>
> As a user, wouldn't you prefer this too? :}
>
>
>
> On Mon, Dec 1, 2008 at 4:23 PM, Jay-andro <[EMAIL PROTECTED]> wrote:
>
> > I too want to send email programmtaically (i.e without a send form).
> > I've got it working with my hardcoded credentials, but I want my app
> > to use the user's account to send the email from the user's account
> > and receive replies to his account. How do I do this?
>
> > On Nov 12, 10:51 am, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
> > > Thank you. I will try this.
>
> > > On Wed, Nov 12, 2008 at 12:44 AM, Peli <[EMAIL PROTECTED]> wrote:
>
> > > > You can find a code snippet here:
> > > >http://www.openintents.org/en/node/121
>
> > > > There is also a related SENDTO action which you can look up in the
> > > > documentation.
>
> > > > Peli
> > > >www.openintents.org
>
> > > > On Nov 12, 8:52 am, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
> > > > > Ok how would I implement the 'send form'. Do you mean that I should
> > > > launch a
> > > > > web browser and use some webmail type of application hosted on a
> > server?
> > > > > I was thinking about the Email Outbox. How can I put a simple text
> > > > message
> > > > > as an email in the Outbox? I know I could do this long long ago with
> > Palm
> > > > OS
> > > > > ver3.0. Hope there is a way to do it on Android.
>
> > > > > - Sunit
>
> > > > > On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess <[EMAIL PROTECTED]>
> > > > wrote:
> > > > > > If you don't want to direct the user to the typical send form, then
> > > > you're
> > > > > > going to have to either try and adapt an existing java based mailer
> > to
> > > > > > android or write an SMTP client from scratch.  The SMTP standard
> > isn't
> > > > too
> > > > > > hard to implement.
>
> > > > > > On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar <
> > [EMAIL PROTECTED]
> > > > >wrote:
>
> > > > > >> Any ideas? Any pointers to some examples?
>
> > > > > >> On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar <
> > [EMAIL PROTECTED]
> > > > >wrote:
>
> > > > > >>> Suppose I have an Activity which has couple of text fields - one
> > for
> > > > the
> > > > > >>> subject and one for body text.
> > > > > >>> And there is a simple Button. When user clicks the button, I wish
> > to
> > > > send
> > > > > >>> the text in the textfields via email to a predetermined email
> > > > address.
> > > > > >>> How can I achieve this?
>
> > > > > >>> Sorry for being lazy and not looking up the SDK docs :)
>
> > > > > >>> PS: I have configured the EMAIL app on G1 using the Email setup
> > > > steps, so
> > > > > >>> it can receive and send email from my email account.
>
> > > > > >>> --
> > > > > >>> - Sunit Katkar
> > > > > >>>http://sunitkatkar.blogspot.com/-AndroidOS Tutorials
>
> > > > > >> --
> > > > > >> - Sunit Katkar
> > > > > >>http://sunitkatkar.blogspot.com/-AndroidOS Tutorials
>
> > > > > > --
> > > > > > Andrew Burgess
>
> > > > > --
> > > > > - Sunit Katkarhttp://sunitkatkar.blogspot.com/-AndroidOS Tutorials
>
> > > --
> > > - Sunit Katkarhttp://sunitkatkar.blogspot.com/-Android OS Tutorials
>
> --
> Dianne Hackborn
> Android framework engineer
> [EMAIL PROTECTED]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, 

[android-developers] Re: How to send email programmatically?

2008-12-07 Thread Xavier Mathews

Java Mail?

On 12/07/2008, Christine <[EMAIL PROTECTED]> wrote:
>
> I use Javamail,  works fine.
>
> On Dec 6, 8:32 pm, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
>> Yes I would prefer this. However, can you please post a code example of
>> how
>> to do this?Thanks,
>>
>> - Sunit Katkar
>>
>> On Sat, Dec 6, 2008 at 11:13 AM, Dianne Hackborn
>> <[EMAIL PROTECTED]>wrote:
>>
>> > You need to go through the UI of the mailer activity, so the user can
>> > select which app to use etc.  Adding support for allowing applications
>> > to
>> > get at the user's personal e-mail information and send on their behalf
>> > without their interaction (but some other way to inform them that the
>> > app is
>> > doing this) is not a high priority for the platform; actually, I would
>> > personally much prefer that apps go through the mail UI so the user can
>> > be
>> > aware of and confirm whatever some non-mail app is sending on their
>> > behalf.
>>
>> > As a user, wouldn't you prefer this too? :}
>>
>> > On Mon, Dec 1, 2008 at 4:23 PM, Jay-andro <[EMAIL PROTECTED]> wrote:
>>
>> >> I too want to send email programmtaically (i.e without a send form).
>> >> I've got it working with my hardcoded credentials, but I want my app
>> >> to use the user's account to send the email from the user's account
>> >> and receive replies to his account. How do I do this?
>>
>> >> On Nov 12, 10:51 am, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
>> >> > Thank you. I will try this.
>>
>> >> > On Wed, Nov 12, 2008 at 12:44 AM, Peli <[EMAIL PROTECTED]>
>> >> > wrote:
>>
>> >> > > You can find a code snippet here:
>> >> > >http://www.openintents.org/en/node/121
>>
>> >> > > There is also a related SENDTO action which you can look up in the
>> >> > > documentation.
>>
>> >> > > Peli
>> >> > >www.openintents.org
>>
>> >> > > On Nov 12, 8:52 am, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
>> >> > > > Ok how would I implement the 'send form'. Do you mean that I
>> >> > > > should
>> >> > > launch a
>> >> > > > web browser and use some webmail type of application hosted on a
>> >> server?
>> >> > > > I was thinking about the Email Outbox. How can I put a simple
>> >> > > > text
>> >> > > message
>> >> > > > as an email in the Outbox? I know I could do this long long ago
>> >> > > > with
>> >> Palm
>> >> > > OS
>> >> > > > ver3.0. Hope there is a way to do it on Android.
>>
>> >> > > > - Sunit
>>
>> >> > > > On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess
>> >> > > > <[EMAIL PROTECTED]>
>> >> > > wrote:
>> >> > > > > If you don't want to direct the user to the typical send form,
>> >> then
>> >> > > you're
>> >> > > > > going to have to either try and adapt an existing java based
>> >> mailer to
>> >> > > > > android or write an SMTP client from scratch.  The SMTP
>> >> > > > > standard
>> >> isn't
>> >> > > too
>> >> > > > > hard to implement.
>>
>> >> > > > > On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar <
>> >> [EMAIL PROTECTED]
>> >> > > >wrote:
>>
>> >> > > > >> Any ideas? Any pointers to some examples?
>>
>> >> > > > >> On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar <
>> >> [EMAIL PROTECTED]
>> >> > > >wrote:
>>
>> >> > > > >>> Suppose I have an Activity which has couple of text fields -
>> >> > > > >>> one
>> >> for
>> >> > > the
>> >> > > > >>> subject and one for body text.
>> >> > > > >>> And there is a simple Button. When user clicks the button, I
>> >> wish to
>> >> > > send
>> >> > > > >>> the text in the textfields via email to a predetermined email
>> >> > > address.
>> >> > > > >>> How can I achieve this?
>>
>> >> > > > >>> Sorry for being lazy and not looking up the SDK docs :)
>>
>> >> > > > >>> PS: I have configured the EMAIL app on G1 using the Email
>> >> > > > >>> setup
>> >> > > steps, so
>> >> > > > >>> it can receive and send email from my email account.
>>
>> >> > > > >>> --
>> >> > > > >>> - Sunit Katkar
>> >> > > > >>>http://sunitkatkar.blogspot.com/-AndroidOS Tutorials
>>
>> >> > > > >> --
>> >> > > > >> - Sunit Katkar
>> >> > > > >>http://sunitkatkar.blogspot.com/-AndroidOS Tutorials
>>
>> >> > > > > --
>> >> > > > > Andrew Burgess
>>
>> >> > > > --
>> >> > > > - Sunit Katkarhttp://sunitkatkar.blogspot.com/-AndroidOS
>> >> > > > Tutorials
>>
>> >> > --
>> >> > - Sunit Katkarhttp://sunitkatkar.blogspot.com/-Android OS Tutorials
>>
>> > --
>> > Dianne Hackborn
>> > Android framework engineer
>> > [EMAIL PROTECTED]
>>
>> > Note: please don't send private questions to me, as I don't have time to
>> > provide private support.  All such questions should be posted on public
>> > forums, where I and others can see and answer them.
> >
>


-- 
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
"Fear of a name, only increases fear of the thing itself."

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to

[android-developers] Re: How to send email programmatically?

2008-12-07 Thread Christine

I use Javamail,  works fine.

On Dec 6, 8:32 pm, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
> Yes I would prefer this. However, can you please post a code example of how
> to do this?Thanks,
>
> - Sunit Katkar
>
> On Sat, Dec 6, 2008 at 11:13 AM, Dianne Hackborn <[EMAIL PROTECTED]>wrote:
>
> > You need to go through the UI of the mailer activity, so the user can
> > select which app to use etc.  Adding support for allowing applications to
> > get at the user's personal e-mail information and send on their behalf
> > without their interaction (but some other way to inform them that the app is
> > doing this) is not a high priority for the platform; actually, I would
> > personally much prefer that apps go through the mail UI so the user can be
> > aware of and confirm whatever some non-mail app is sending on their behalf.
>
> > As a user, wouldn't you prefer this too? :}
>
> > On Mon, Dec 1, 2008 at 4:23 PM, Jay-andro <[EMAIL PROTECTED]> wrote:
>
> >> I too want to send email programmtaically (i.e without a send form).
> >> I've got it working with my hardcoded credentials, but I want my app
> >> to use the user's account to send the email from the user's account
> >> and receive replies to his account. How do I do this?
>
> >> On Nov 12, 10:51 am, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
> >> > Thank you. I will try this.
>
> >> > On Wed, Nov 12, 2008 at 12:44 AM, Peli <[EMAIL PROTECTED]> wrote:
>
> >> > > You can find a code snippet here:
> >> > >http://www.openintents.org/en/node/121
>
> >> > > There is also a related SENDTO action which you can look up in the
> >> > > documentation.
>
> >> > > Peli
> >> > >www.openintents.org
>
> >> > > On Nov 12, 8:52 am, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
> >> > > > Ok how would I implement the 'send form'. Do you mean that I should
> >> > > launch a
> >> > > > web browser and use some webmail type of application hosted on a
> >> server?
> >> > > > I was thinking about the Email Outbox. How can I put a simple text
> >> > > message
> >> > > > as an email in the Outbox? I know I could do this long long ago with
> >> Palm
> >> > > OS
> >> > > > ver3.0. Hope there is a way to do it on Android.
>
> >> > > > - Sunit
>
> >> > > > On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess <[EMAIL PROTECTED]>
> >> > > wrote:
> >> > > > > If you don't want to direct the user to the typical send form,
> >> then
> >> > > you're
> >> > > > > going to have to either try and adapt an existing java based
> >> mailer to
> >> > > > > android or write an SMTP client from scratch.  The SMTP standard
> >> isn't
> >> > > too
> >> > > > > hard to implement.
>
> >> > > > > On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar <
> >> [EMAIL PROTECTED]
> >> > > >wrote:
>
> >> > > > >> Any ideas? Any pointers to some examples?
>
> >> > > > >> On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar <
> >> [EMAIL PROTECTED]
> >> > > >wrote:
>
> >> > > > >>> Suppose I have an Activity which has couple of text fields - one
> >> for
> >> > > the
> >> > > > >>> subject and one for body text.
> >> > > > >>> And there is a simple Button. When user clicks the button, I
> >> wish to
> >> > > send
> >> > > > >>> the text in the textfields via email to a predetermined email
> >> > > address.
> >> > > > >>> How can I achieve this?
>
> >> > > > >>> Sorry for being lazy and not looking up the SDK docs :)
>
> >> > > > >>> PS: I have configured the EMAIL app on G1 using the Email setup
> >> > > steps, so
> >> > > > >>> it can receive and send email from my email account.
>
> >> > > > >>> --
> >> > > > >>> - Sunit Katkar
> >> > > > >>>http://sunitkatkar.blogspot.com/-AndroidOS Tutorials
>
> >> > > > >> --
> >> > > > >> - Sunit Katkar
> >> > > > >>http://sunitkatkar.blogspot.com/-AndroidOS Tutorials
>
> >> > > > > --
> >> > > > > Andrew Burgess
>
> >> > > > --
> >> > > > - Sunit Katkarhttp://sunitkatkar.blogspot.com/-AndroidOS Tutorials
>
> >> > --
> >> > - Sunit Katkarhttp://sunitkatkar.blogspot.com/-Android OS Tutorials
>
> > --
> > Dianne Hackborn
> > Android framework engineer
> > [EMAIL PROTECTED]
>
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support.  All such questions should be posted on public
> > forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to send email programmatically?

2008-12-06 Thread Sunit Katkar
Yes I would prefer this. However, can you please post a code example of how
to do this?Thanks,

- Sunit Katkar



On Sat, Dec 6, 2008 at 11:13 AM, Dianne Hackborn <[EMAIL PROTECTED]>wrote:

> You need to go through the UI of the mailer activity, so the user can
> select which app to use etc.  Adding support for allowing applications to
> get at the user's personal e-mail information and send on their behalf
> without their interaction (but some other way to inform them that the app is
> doing this) is not a high priority for the platform; actually, I would
> personally much prefer that apps go through the mail UI so the user can be
> aware of and confirm whatever some non-mail app is sending on their behalf.
>
> As a user, wouldn't you prefer this too? :}
>
>
> On Mon, Dec 1, 2008 at 4:23 PM, Jay-andro <[EMAIL PROTECTED]> wrote:
>
>>
>> I too want to send email programmtaically (i.e without a send form).
>> I've got it working with my hardcoded credentials, but I want my app
>> to use the user's account to send the email from the user's account
>> and receive replies to his account. How do I do this?
>>
>> On Nov 12, 10:51 am, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
>> > Thank you. I will try this.
>> >
>> >
>> >
>> > On Wed, Nov 12, 2008 at 12:44 AM, Peli <[EMAIL PROTECTED]> wrote:
>> >
>> > > You can find a code snippet here:
>> > >http://www.openintents.org/en/node/121
>> >
>> > > There is also a related SENDTO action which you can look up in the
>> > > documentation.
>> >
>> > > Peli
>> > >www.openintents.org
>> >
>> > > On Nov 12, 8:52 am, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
>> > > > Ok how would I implement the 'send form'. Do you mean that I should
>> > > launch a
>> > > > web browser and use some webmail type of application hosted on a
>> server?
>> > > > I was thinking about the Email Outbox. How can I put a simple text
>> > > message
>> > > > as an email in the Outbox? I know I could do this long long ago with
>> Palm
>> > > OS
>> > > > ver3.0. Hope there is a way to do it on Android.
>> >
>> > > > - Sunit
>> >
>> > > > On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess <[EMAIL PROTECTED]>
>> > > wrote:
>> > > > > If you don't want to direct the user to the typical send form,
>> then
>> > > you're
>> > > > > going to have to either try and adapt an existing java based
>> mailer to
>> > > > > android or write an SMTP client from scratch.  The SMTP standard
>> isn't
>> > > too
>> > > > > hard to implement.
>> >
>> > > > > On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar <
>> [EMAIL PROTECTED]
>> > > >wrote:
>> >
>> > > > >> Any ideas? Any pointers to some examples?
>> >
>> > > > >> On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar <
>> [EMAIL PROTECTED]
>> > > >wrote:
>> >
>> > > > >>> Suppose I have an Activity which has couple of text fields - one
>> for
>> > > the
>> > > > >>> subject and one for body text.
>> > > > >>> And there is a simple Button. When user clicks the button, I
>> wish to
>> > > send
>> > > > >>> the text in the textfields via email to a predetermined email
>> > > address.
>> > > > >>> How can I achieve this?
>> >
>> > > > >>> Sorry for being lazy and not looking up the SDK docs :)
>> >
>> > > > >>> PS: I have configured the EMAIL app on G1 using the Email setup
>> > > steps, so
>> > > > >>> it can receive and send email from my email account.
>> >
>> > > > >>> --
>> > > > >>> - Sunit Katkar
>> > > > >>>http://sunitkatkar.blogspot.com/-Android OS Tutorials
>> >
>> > > > >> --
>> > > > >> - Sunit Katkar
>> > > > >>http://sunitkatkar.blogspot.com/-Android OS Tutorials
>> >
>> > > > > --
>> > > > > Andrew Burgess
>> >
>> > > > --
>> > > > - Sunit Katkarhttp://sunitkatkar.blogspot.com/-Android OS Tutorials
>> >
>> > --
>> > - Sunit Katkarhttp://sunitkatkar.blogspot.com/- Android OS Tutorials
>>
>>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> [EMAIL PROTECTED]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.
>
>
>
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to send email programmatically?

2008-12-06 Thread Dianne Hackborn
You need to go through the UI of the mailer activity, so the user can select
which app to use etc.  Adding support for allowing applications to get at
the user's personal e-mail information and send on their behalf without
their interaction (but some other way to inform them that the app is doing
this) is not a high priority for the platform; actually, I would personally
much prefer that apps go through the mail UI so the user can be aware of and
confirm whatever some non-mail app is sending on their behalf.

As a user, wouldn't you prefer this too? :}

On Mon, Dec 1, 2008 at 4:23 PM, Jay-andro <[EMAIL PROTECTED]> wrote:

>
> I too want to send email programmtaically (i.e without a send form).
> I've got it working with my hardcoded credentials, but I want my app
> to use the user's account to send the email from the user's account
> and receive replies to his account. How do I do this?
>
> On Nov 12, 10:51 am, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
> > Thank you. I will try this.
> >
> >
> >
> > On Wed, Nov 12, 2008 at 12:44 AM, Peli <[EMAIL PROTECTED]> wrote:
> >
> > > You can find a code snippet here:
> > >http://www.openintents.org/en/node/121
> >
> > > There is also a related SENDTO action which you can look up in the
> > > documentation.
> >
> > > Peli
> > >www.openintents.org
> >
> > > On Nov 12, 8:52 am, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
> > > > Ok how would I implement the 'send form'. Do you mean that I should
> > > launch a
> > > > web browser and use some webmail type of application hosted on a
> server?
> > > > I was thinking about the Email Outbox. How can I put a simple text
> > > message
> > > > as an email in the Outbox? I know I could do this long long ago with
> Palm
> > > OS
> > > > ver3.0. Hope there is a way to do it on Android.
> >
> > > > - Sunit
> >
> > > > On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess <[EMAIL PROTECTED]>
> > > wrote:
> > > > > If you don't want to direct the user to the typical send form, then
> > > you're
> > > > > going to have to either try and adapt an existing java based mailer
> to
> > > > > android or write an SMTP client from scratch.  The SMTP standard
> isn't
> > > too
> > > > > hard to implement.
> >
> > > > > On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar <
> [EMAIL PROTECTED]
> > > >wrote:
> >
> > > > >> Any ideas? Any pointers to some examples?
> >
> > > > >> On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar <
> [EMAIL PROTECTED]
> > > >wrote:
> >
> > > > >>> Suppose I have an Activity which has couple of text fields - one
> for
> > > the
> > > > >>> subject and one for body text.
> > > > >>> And there is a simple Button. When user clicks the button, I wish
> to
> > > send
> > > > >>> the text in the textfields via email to a predetermined email
> > > address.
> > > > >>> How can I achieve this?
> >
> > > > >>> Sorry for being lazy and not looking up the SDK docs :)
> >
> > > > >>> PS: I have configured the EMAIL app on G1 using the Email setup
> > > steps, so
> > > > >>> it can receive and send email from my email account.
> >
> > > > >>> --
> > > > >>> - Sunit Katkar
> > > > >>>http://sunitkatkar.blogspot.com/-Android OS Tutorials
> >
> > > > >> --
> > > > >> - Sunit Katkar
> > > > >>http://sunitkatkar.blogspot.com/-Android OS Tutorials
> >
> > > > > --
> > > > > Andrew Burgess
> >
> > > > --
> > > > - Sunit Katkarhttp://sunitkatkar.blogspot.com/-Android OS Tutorials
> >
> > --
> > - Sunit Katkarhttp://sunitkatkar.blogspot.com/- Android OS Tutorials
> >
>


-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to send email programmatically?

2008-12-06 Thread Sunit Katkar
www.openintents.org seems to be down. I got to this thread after a long time
and now that site is down :-(
- Sunit Katkar
http://sunitkatkar.blogspot.com/ - Android OS Tutorials



On Mon, Dec 1, 2008 at 6:06 PM, Xavier Mathews <[EMAIL PROTECTED]>wrote:

>
> Would They Be Using Gmail? If So You Could Have It Programed With IMAP!
>
> On 12/01/2008, Jay-andro <[EMAIL PROTECTED]> wrote:
> >
> > I too want to send email programmtaically (i.e without a send form).
> > I've got it working with my hardcoded credentials, but I want my app
> > to use the user's account to send the email from the user's account
> > and receive replies to his account. How do I do this?
> >
> > On Nov 12, 10:51 am, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
> >> Thank you. I will try this.
> >>
> >>
> >>
> >> On Wed, Nov 12, 2008 at 12:44 AM, Peli <[EMAIL PROTECTED]> wrote:
> >>
> >> > You can find a code snippet here:
> >> >http://www.openintents.org/en/node/121
> >>
> >> > There is also a related SENDTO action which you can look up in the
> >> > documentation.
> >>
> >> > Peli
> >> >www.openintents.org
> >>
> >> > On Nov 12, 8:52 am, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
> >> > > Ok how would I implement the 'send form'. Do you mean that I should
> >> > launch a
> >> > > web browser and use some webmail type of application hosted on a
> >> > > server?
> >> > > I was thinking about the Email Outbox. How can I put a simple text
> >> > message
> >> > > as an email in the Outbox? I know I could do this long long ago with
> >> > > Palm
> >> > OS
> >> > > ver3.0. Hope there is a way to do it on Android.
> >>
> >> > > - Sunit
> >>
> >> > > On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess <[EMAIL PROTECTED]>
> >> > wrote:
> >> > > > If you don't want to direct the user to the typical send form,
> then
> >> > you're
> >> > > > going to have to either try and adapt an existing java based
> mailer
> >> > > > to
> >> > > > android or write an SMTP client from scratch.  The SMTP standard
> >> > > > isn't
> >> > too
> >> > > > hard to implement.
> >>
> >> > > > On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar <
> [EMAIL PROTECTED]
> >> > >wrote:
> >>
> >> > > >> Any ideas? Any pointers to some examples?
> >>
> >> > > >> On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar
> >> > > >> <[EMAIL PROTECTED]
> >> > >wrote:
> >>
> >> > > >>> Suppose I have an Activity which has couple of text fields - one
> >> > > >>> for
> >> > the
> >> > > >>> subject and one for body text.
> >> > > >>> And there is a simple Button. When user clicks the button, I
> wish
> >> > > >>> to
> >> > send
> >> > > >>> the text in the textfields via email to a predetermined email
> >> > address.
> >> > > >>> How can I achieve this?
> >>
> >> > > >>> Sorry for being lazy and not looking up the SDK docs :)
> >>
> >> > > >>> PS: I have configured the EMAIL app on G1 using the Email setup
> >> > steps, so
> >> > > >>> it can receive and send email from my email account.
> >>
> >> > > >>> --
> >> > > >>> - Sunit Katkar
> >> > > >>>http://sunitkatkar.blogspot.com/-Android OS Tutorials
> >>
> >> > > >> --
> >> > > >> - Sunit Katkar
> >> > > >>http://sunitkatkar.blogspot.com/-Android OS Tutorials
> >>
> >> > > > --
> >> > > > Andrew Burgess
> >>
> >> > > --
> >> > > - Sunit Katkarhttp://sunitkatkar.blogspot.com/-Android OS Tutorials
> >>
> >> --
> >> - Sunit Katkarhttp://sunitkatkar.blogspot.com/- Android OS Tutorials
> > >
> >
>
>
> --
> Xavier A. Mathews
> Student/Browser Specialist/Developer/Web-Master
> Google Group Client Based Tech Support Specialist
> Hazel Crest Illinois
> [EMAIL PROTECTED]@[EMAIL PROTECTED]
> "Fear of a name, only increases fear of the thing itself."
>
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to send email programmatically?

2008-12-01 Thread Xavier Mathews

Would They Be Using Gmail? If So You Could Have It Programed With IMAP!

On 12/01/2008, Jay-andro <[EMAIL PROTECTED]> wrote:
>
> I too want to send email programmtaically (i.e without a send form).
> I've got it working with my hardcoded credentials, but I want my app
> to use the user's account to send the email from the user's account
> and receive replies to his account. How do I do this?
>
> On Nov 12, 10:51 am, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
>> Thank you. I will try this.
>>
>>
>>
>> On Wed, Nov 12, 2008 at 12:44 AM, Peli <[EMAIL PROTECTED]> wrote:
>>
>> > You can find a code snippet here:
>> >http://www.openintents.org/en/node/121
>>
>> > There is also a related SENDTO action which you can look up in the
>> > documentation.
>>
>> > Peli
>> >www.openintents.org
>>
>> > On Nov 12, 8:52 am, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
>> > > Ok how would I implement the 'send form'. Do you mean that I should
>> > launch a
>> > > web browser and use some webmail type of application hosted on a
>> > > server?
>> > > I was thinking about the Email Outbox. How can I put a simple text
>> > message
>> > > as an email in the Outbox? I know I could do this long long ago with
>> > > Palm
>> > OS
>> > > ver3.0. Hope there is a way to do it on Android.
>>
>> > > - Sunit
>>
>> > > On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess <[EMAIL PROTECTED]>
>> > wrote:
>> > > > If you don't want to direct the user to the typical send form, then
>> > you're
>> > > > going to have to either try and adapt an existing java based mailer
>> > > > to
>> > > > android or write an SMTP client from scratch.  The SMTP standard
>> > > > isn't
>> > too
>> > > > hard to implement.
>>
>> > > > On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar <[EMAIL PROTECTED]
>> > >wrote:
>>
>> > > >> Any ideas? Any pointers to some examples?
>>
>> > > >> On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar
>> > > >> <[EMAIL PROTECTED]
>> > >wrote:
>>
>> > > >>> Suppose I have an Activity which has couple of text fields - one
>> > > >>> for
>> > the
>> > > >>> subject and one for body text.
>> > > >>> And there is a simple Button. When user clicks the button, I wish
>> > > >>> to
>> > send
>> > > >>> the text in the textfields via email to a predetermined email
>> > address.
>> > > >>> How can I achieve this?
>>
>> > > >>> Sorry for being lazy and not looking up the SDK docs :)
>>
>> > > >>> PS: I have configured the EMAIL app on G1 using the Email setup
>> > steps, so
>> > > >>> it can receive and send email from my email account.
>>
>> > > >>> --
>> > > >>> - Sunit Katkar
>> > > >>>http://sunitkatkar.blogspot.com/-Android OS Tutorials
>>
>> > > >> --
>> > > >> - Sunit Katkar
>> > > >>http://sunitkatkar.blogspot.com/-Android OS Tutorials
>>
>> > > > --
>> > > > Andrew Burgess
>>
>> > > --
>> > > - Sunit Katkarhttp://sunitkatkar.blogspot.com/-Android OS Tutorials
>>
>> --
>> - Sunit Katkarhttp://sunitkatkar.blogspot.com/- Android OS Tutorials
> >
>


-- 
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
"Fear of a name, only increases fear of the thing itself."

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to send email programmatically?

2008-12-01 Thread Jay-andro

I too want to send email programmtaically (i.e without a send form).
I've got it working with my hardcoded credentials, but I want my app
to use the user's account to send the email from the user's account
and receive replies to his account. How do I do this?

On Nov 12, 10:51 am, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
> Thank you. I will try this.
>
>
>
> On Wed, Nov 12, 2008 at 12:44 AM, Peli <[EMAIL PROTECTED]> wrote:
>
> > You can find a code snippet here:
> >http://www.openintents.org/en/node/121
>
> > There is also a related SENDTO action which you can look up in the
> > documentation.
>
> > Peli
> >www.openintents.org
>
> > On Nov 12, 8:52 am, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
> > > Ok how would I implement the 'send form'. Do you mean that I should
> > launch a
> > > web browser and use some webmail type of application hosted on a server?
> > > I was thinking about the Email Outbox. How can I put a simple text
> > message
> > > as an email in the Outbox? I know I could do this long long ago with Palm
> > OS
> > > ver3.0. Hope there is a way to do it on Android.
>
> > > - Sunit
>
> > > On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess <[EMAIL PROTECTED]>
> > wrote:
> > > > If you don't want to direct the user to the typical send form, then
> > you're
> > > > going to have to either try and adapt an existing java based mailer to
> > > > android or write an SMTP client from scratch.  The SMTP standard isn't
> > too
> > > > hard to implement.
>
> > > > On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar <[EMAIL PROTECTED]
> > >wrote:
>
> > > >> Any ideas? Any pointers to some examples?
>
> > > >> On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar <[EMAIL PROTECTED]
> > >wrote:
>
> > > >>> Suppose I have an Activity which has couple of text fields - one for
> > the
> > > >>> subject and one for body text.
> > > >>> And there is a simple Button. When user clicks the button, I wish to
> > send
> > > >>> the text in the textfields via email to a predetermined email
> > address.
> > > >>> How can I achieve this?
>
> > > >>> Sorry for being lazy and not looking up the SDK docs :)
>
> > > >>> PS: I have configured the EMAIL app on G1 using the Email setup
> > steps, so
> > > >>> it can receive and send email from my email account.
>
> > > >>> --
> > > >>> - Sunit Katkar
> > > >>>http://sunitkatkar.blogspot.com/-Android OS Tutorials
>
> > > >> --
> > > >> - Sunit Katkar
> > > >>http://sunitkatkar.blogspot.com/-Android OS Tutorials
>
> > > > --
> > > > Andrew Burgess
>
> > > --
> > > - Sunit Katkarhttp://sunitkatkar.blogspot.com/-Android OS Tutorials
>
> --
> - Sunit Katkarhttp://sunitkatkar.blogspot.com/- Android OS Tutorials
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to send email programmatically?

2008-11-12 Thread Sunit Katkar
Thank you. I will try this.

On Wed, Nov 12, 2008 at 12:44 AM, Peli <[EMAIL PROTECTED]> wrote:

>
> You can find a code snippet here:
> http://www.openintents.org/en/node/121
>
> There is also a related SENDTO action which you can look up in the
> documentation.
>
> Peli
> www.openintents.org
>
> On Nov 12, 8:52 am, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
> > Ok how would I implement the 'send form'. Do you mean that I should
> launch a
> > web browser and use some webmail type of application hosted on a server?
> > I was thinking about the Email Outbox. How can I put a simple text
> message
> > as an email in the Outbox? I know I could do this long long ago with Palm
> OS
> > ver3.0. Hope there is a way to do it on Android.
> >
> > - Sunit
> >
> >
> >
> > On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess <[EMAIL PROTECTED]>
> wrote:
> > > If you don't want to direct the user to the typical send form, then
> you're
> > > going to have to either try and adapt an existing java based mailer to
> > > android or write an SMTP client from scratch.  The SMTP standard isn't
> too
> > > hard to implement.
> >
> > > On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar <[EMAIL PROTECTED]
> >wrote:
> >
> > >> Any ideas? Any pointers to some examples?
> >
> > >> On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar <[EMAIL PROTECTED]
> >wrote:
> >
> > >>> Suppose I have an Activity which has couple of text fields - one for
> the
> > >>> subject and one for body text.
> > >>> And there is a simple Button. When user clicks the button, I wish to
> send
> > >>> the text in the textfields via email to a predetermined email
> address.
> > >>> How can I achieve this?
> >
> > >>> Sorry for being lazy and not looking up the SDK docs :)
> >
> > >>> PS: I have configured the EMAIL app on G1 using the Email setup
> steps, so
> > >>> it can receive and send email from my email account.
> >
> > >>> --
> > >>> - Sunit Katkar
> > >>>http://sunitkatkar.blogspot.com/- Android OS Tutorials
> >
> > >> --
> > >> - Sunit Katkar
> > >>http://sunitkatkar.blogspot.com/- Android OS Tutorials
> >
> > > --
> > > Andrew Burgess
> >
> > --
> > - Sunit Katkarhttp://sunitkatkar.blogspot.com/- Android OS Tutorials
> >
>


-- 
- Sunit Katkar
http://sunitkatkar.blogspot.com/ - Android OS Tutorials

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to send email programmatically?

2008-11-12 Thread Peli

You can find a code snippet here:
http://www.openintents.org/en/node/121

There is also a related SENDTO action which you can look up in the
documentation.

Peli
www.openintents.org

On Nov 12, 8:52 am, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
> Ok how would I implement the 'send form'. Do you mean that I should launch a
> web browser and use some webmail type of application hosted on a server?
> I was thinking about the Email Outbox. How can I put a simple text message
> as an email in the Outbox? I know I could do this long long ago with Palm OS
> ver3.0. Hope there is a way to do it on Android.
>
> - Sunit
>
>
>
> On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess <[EMAIL PROTECTED]> wrote:
> > If you don't want to direct the user to the typical send form, then you're
> > going to have to either try and adapt an existing java based mailer to
> > android or write an SMTP client from scratch.  The SMTP standard isn't too
> > hard to implement.
>
> > On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar <[EMAIL PROTECTED]>wrote:
>
> >> Any ideas? Any pointers to some examples?
>
> >> On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar <[EMAIL PROTECTED]>wrote:
>
> >>> Suppose I have an Activity which has couple of text fields - one for the
> >>> subject and one for body text.
> >>> And there is a simple Button. When user clicks the button, I wish to send
> >>> the text in the textfields via email to a predetermined email address.
> >>> How can I achieve this?
>
> >>> Sorry for being lazy and not looking up the SDK docs :)
>
> >>> PS: I have configured the EMAIL app on G1 using the Email setup steps, so
> >>> it can receive and send email from my email account.
>
> >>> --
> >>> - Sunit Katkar
> >>>http://sunitkatkar.blogspot.com/- Android OS Tutorials
>
> >> --
> >> - Sunit Katkar
> >>http://sunitkatkar.blogspot.com/- Android OS Tutorials
>
> > --
> > Andrew Burgess
>
> --
> - Sunit Katkarhttp://sunitkatkar.blogspot.com/- Android OS Tutorials
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to send email programmatically?

2008-11-11 Thread Sunit Katkar
Ok how would I implement the 'send form'. Do you mean that I should launch a
web browser and use some webmail type of application hosted on a server?
I was thinking about the Email Outbox. How can I put a simple text message
as an email in the Outbox? I know I could do this long long ago with Palm OS
ver3.0. Hope there is a way to do it on Android.

- Sunit

On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess <[EMAIL PROTECTED]> wrote:

> If you don't want to direct the user to the typical send form, then you're
> going to have to either try and adapt an existing java based mailer to
> android or write an SMTP client from scratch.  The SMTP standard isn't too
> hard to implement.
>
>
> On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar <[EMAIL PROTECTED]>wrote:
>
>> Any ideas? Any pointers to some examples?
>>
>>
>> On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar <[EMAIL PROTECTED]>wrote:
>>
>>> Suppose I have an Activity which has couple of text fields - one for the
>>> subject and one for body text.
>>> And there is a simple Button. When user clicks the button, I wish to send
>>> the text in the textfields via email to a predetermined email address.
>>> How can I achieve this?
>>>
>>> Sorry for being lazy and not looking up the SDK docs :)
>>>
>>> PS: I have configured the EMAIL app on G1 using the Email setup steps, so
>>> it can receive and send email from my email account.
>>>
>>> --
>>> - Sunit Katkar
>>> http://sunitkatkar.blogspot.com/ - Android OS Tutorials
>>>
>>>
>>
>>
>> --
>> - Sunit Katkar
>> http://sunitkatkar.blogspot.com/ - Android OS Tutorials
>>
>>
>>
>>
>
>
> --
> Andrew Burgess
>
> >
>


-- 
- Sunit Katkar
http://sunitkatkar.blogspot.com/ - Android OS Tutorials

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to send email programmatically?

2008-11-11 Thread Andrew Burgess
If you don't want to direct the user to the typical send form, then you're
going to have to either try and adapt an existing java based mailer to
android or write an SMTP client from scratch.  The SMTP standard isn't too
hard to implement.

On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar <[EMAIL PROTECTED]> wrote:

> Any ideas? Any pointers to some examples?
>
>
> On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar <[EMAIL PROTECTED]>wrote:
>
>> Suppose I have an Activity which has couple of text fields - one for the
>> subject and one for body text.
>> And there is a simple Button. When user clicks the button, I wish to send
>> the text in the textfields via email to a predetermined email address.
>> How can I achieve this?
>>
>> Sorry for being lazy and not looking up the SDK docs :)
>>
>> PS: I have configured the EMAIL app on G1 using the Email setup steps, so
>> it can receive and send email from my email account.
>>
>> --
>> - Sunit Katkar
>> http://sunitkatkar.blogspot.com/ - Android OS Tutorials
>>
>>
>
>
> --
> - Sunit Katkar
> http://sunitkatkar.blogspot.com/ - Android OS Tutorials
>
>
> >
>


-- 
Andrew Burgess

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to send email programmatically?

2008-11-11 Thread Sunit Katkar
Any ideas? Any pointers to some examples?

On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar <[EMAIL PROTECTED]> wrote:

> Suppose I have an Activity which has couple of text fields - one for the
> subject and one for body text.
> And there is a simple Button. When user clicks the button, I wish to send
> the text in the textfields via email to a predetermined email address.
> How can I achieve this?
>
> Sorry for being lazy and not looking up the SDK docs :)
>
> PS: I have configured the EMAIL app on G1 using the Email setup steps, so
> it can receive and send email from my email account.
>
> --
> - Sunit Katkar
> http://sunitkatkar.blogspot.com/ - Android OS Tutorials
>
>


-- 
- Sunit Katkar
http://sunitkatkar.blogspot.com/ - Android OS Tutorials

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---