Email on background?

sarkis

Member
Licensed User
Longtime User
Hi all,
I tried to find an answer to this question but I could not .
Is it possible that the Email has been sent on background ,without showing a new screen and pushing "send", only by clicking a button on the main screen ?
Thanks
 

sarkis

Member
Licensed User
Longtime User
Email on background

Timo,
Thank you for replying.
I find out your another post on similar question.
You mention that code works for gmail and ...
"For some reason, it seems to work fine with gmail and not very well with other accounts."
I have tried and it works with yahoo also.
I have couple of questions .

1.How to know server name?
for example if you email is [email protected] your server name should be "smtp.mail.yahoo.com"
2.Is there a default account in phone ?
3.May I retrieve user name and password from account.
(I don't need that information .I need only to send an email without user typing)
Any answer will be appreciated.
 
Upvote 0

rfresh

Well-Known Member
Licensed User
Longtime User
>for example if you email is [email protected] your server name
>should be "smtp.mail.yahoo.com"

When configuring your POP3/SMTP mail servers, the owner of the servers will publish what their server names are. You do not want to guess at what these names should be or might me. Google around for the Yahoo server names so you can configure your POP3 and specifically for your sending needs, the Yahoo SMTP server name.

Then it should work just fine.
 
Upvote 0

sarkis

Member
Licensed User
Longtime User
ok ,
but how my program knows about configuration that make user?
My question is how to retrieve that all information from the phone.
Or I don't understand something.
So I need 3 things
1 outgoing server name
2 email
3 password
which of this can my application get from phone without user typing?
 
Upvote 0

rfresh

Well-Known Member
Licensed User
Longtime User
Your phone can't do that by itself. How would your phone know what the password is? The user will need to enter in their email account password before your app can send out an email.
 
Upvote 0

sarkis

Member
Licensed User
Longtime User
We don't understand each other.
The problem is following.
Assume user has configured his account and has an email ( may me more than one )
My application should send me an email with some data .
Is it possible do that without user typing?
only clicking a button!
If answer is no, what minimum typing is necessary.
 
Upvote 0

timo

Active Member
Licensed User
Longtime User
When you develop the app, you utilize the smtp account you have created. Then you distribute your apk. Users, without knowing, are sending email from your smtp account automatically. Who receives that mail sees your e-mail adress as sender. This way of doing generally fits internal company applications.
 
Last edited:
Upvote 0

sarkis

Member
Licensed User
Longtime User
Timo,
I don't understand.
I didn't create any account for user.
I intend to use any account that is already exists.
What I am looking for is possible on Java ,but I don't know Java.
Ok.
I am going to use StartActivity(email.GetIntent)
But there is a problem also in here .
After the email is sending ,application shuts down.
How to prevent that?
 
Upvote 0

rfresh

Well-Known Member
Licensed User
Longtime User
We don't understand each other.
The problem is following.
Assume user has configured his account and has an email ( may me more than one )
My application should send me an email with some data .
Is it possible do that without user typing?
only clicking a button!
If answer is no, what minimum typing is necessary.

The answer is yes. Your app can easily send an email with one button touch. All it needs is the correct information.
 
Upvote 0
Top