I am a beginner to Android development. I just started making an Android app in which there multiple EditText fields where user would fill in some data and then click a button. On button click I need to send an email using my email address which is GMail (NOT THE END USER'S). So, I searched on internet for this, found a way by using "JavaMail" API. But I had to "Enable access to insecure apps", in Google settings of my GMail address for it to work. I don't want my end users to grant access to their email accounts.
I searched for OAuth2 implementations but all were there for using the end user's account to send email.
Help me to find a way to send email from my own GMail account without enabling insecure apps for my GMail.
If you need any more information let me know.
Related
Thanks everyone in advance for any help you may give me.
I have just bought an HTC Desire and my company e-mail runs through MS Officelive (i.e. Hotmail/Windows Live for Business).
I have heard previous Android devices syncing with Hotmail (probably through 3rd party apps installed).
Does anyone know of a good email app that enables HTML etc. and syncs with Hotmail/Windows Live which isn't POP3 (which is terrible as it doesn't sync).
Tried Maildroid and it will only work over POP3 again (even though it says it works with Windows Live).
Would be great if there's a push one too!
Don't mind if it's a paid app either to get it working without POP3.
Any help?
Thank you again.
RE: MailDroid
Hi Urp,
MailDroid will work for it over IMAP if you have set the correct settings. Most people have POP3 so it defaults to that, but if you add in your username/pass and click manual setup, you will be able to add in your imap settings.
PM me if you need some help.
-Joe
P.S. I did not even know live supported IMAP
I tried Seven Beta and if kinda works with hotmail but is very buggy at the moment and support is lacking as it's only beta.
It may work better for you so give it a try
Sully
Thanks guys, I appreciate the support. Do you know the IMAP settings for Windows live then? Everywhere I've read said it isn't supported.
Thank you again guys!
Matt (urp)
RE: Windows Live
Right, that is what I thought. MailDroid works over POP3 for hotmail/live/msn etc. and will do a poll of the server. My understanding is that windows live mail means that the desktop client can access other IMAP accounts and not that Hotmail itself has IMAP.
You can get push mail by signing up for other companies (shangmail and maybe seven (not sure how seven does it)) and they will poll and get UIDs and then push to you. Essentially, they are polling and pushing from their application. Personally, I am biased, but I will tell you that I have many happy hotmail/live/msn users.
Are you seeing issues using MailDroid?
edit: Go to windowslivehelp.com and search for IMAP and you will see that it is not supported.
I have my hotmail account synced directly to my desire, i simply told it to set up an account used my hotmail addy and it got the settings from the internet for me.
However in case yours isnt picking them up for some reason I have provided them below for you- Htc Desire on Tmobile Software number 1.15.110.11
incoming settings
protocol =pop
pop server = pop3.live.com
security type =ssl
server port =995
outgoing settings
login required =ticked
username =hotmail addy ie [email protected]
smtp server=smtp.live.com
security type=tls
server port=587
Account name =Hotmail
Your Name =what ever you want it to display
hope that helps you.
The op doesn't want to use pop access he wants imap or push email, where it deletes messages from server and shows read items as already read etc
Sully
Then simply select your live/hotmail account and select the three vertical bars from the widget to take you into the full email app.
then from there you need to press the menu button and select more.
then select settings and under send and receive settings select
Delete mail on server to be on ie ticked.
this will then delete them from your hotmail account as you delete them from your device when you press refresh to resync the account.
This wont mark them as read on the server however, what you can do as a workaround is to select the unread function on the device to read your unread from the device or to switch off the delete from hotmail account setting and delete them all from your device after you have deleted the ones you dont want which will leave the ones you want to keep on the server but remove them from your device. Then when you sign into hotmail you can mark them all read.
isnt perfect but better than nothing.
btw just to add the delete settings can be set up seperately for each account etc etc
haggisuk99 said:
Then simply select your live/hotmail account and select the three vertical bars from the widget to take you into the full email app.
then from there you need to press the menu button and select more.
then select settings and under send and receive settings select
Delete mail on server to be on ie ticked.
this will then delete them from your hotmail account as you delete them from your device when you press refresh to resync the account.
This wont mark them as read on the server however, what you can do as a workaround is to select the unread function on the device to read your unread from the device or to switch off the delete from hotmail account setting and delete them all from your device after you have deleted the ones you dont want which will leave the ones you want to keep on the server but remove them from your device. Then when you sign into hotmail you can mark them all read.
isnt perfect but better than nothing.
btw just to add the delete settings can be set up seperately for each account etc etc
Click to expand...
Click to collapse
I am aware of the delete function, I was just giving examples of what imap has over a pop account. If you delete a message from hotmail after your phone has synced then it will remain on the device, I know what you are saying but it just doesn't offer the functionality of imap or push email
Sully
Appreciate that but unless you want to hand over your login details to a third party to handle that we are stuck with the above as there is no imap support with hotmail for paid or free accounts to the best of my knowledge, the only item i know that uses imap in conjunction with live mail is the windows desktop live client however there is no visible settings shown on what ports or settings are used.
Until someone can figure them out we are stuck with the above.
re:
Correct, or until Microsoft decides to catch up and implement IMAP
Thank you so so much guys, you've been so helpful. One reason I need IMAP or push is because I quite often move mail between folders. I need something like mboxmail on iPhone but on a far superior OS!
The nearest looks like seven but it isn't perfect by any means.
Thank you again guys, you've been so helpful.
P.s. noticed an engadget post saying HTC desire had overnight upgraded its Google maps to include turn by turn and its fantastic!!!!
Hello-
First, I did a search and could not find an answer to my problem. My sister-in-law has an Aria and is new to Android, as am I. I tried to help her set up a gmail account and went through all the steps I did on my Captivate, but she cannot send any e-mail. She has tried several times, and will get a message in the Notification Tray that reads it cannot be sent. Her gmail account has been activated as I can open her account via the internet and she can download apps fro the Market.
While on the topic of e-mail. We are both teachers, in different school districts, but we both cannot connect to our respective servers to get our school e-mails. What do we need to do? I have read elsewhere it's an issue that needs to be dealt with by the school's system administrator and they must change some various settings. Is this true or is there something else that needs to be done???
Thanks for any advice in advance!
on the subject of not sending emails from the phone, i would first off make sure there is a connection of some kind, be it wifi or a 3g data connection. is she trying to send them from the browser on the phone from gmail.com, or is she using the built in gmail app? i haven't had any issues similar to this with my aria on any of the different roms i've tried.
on the subject of accessing your school emails, that would be something to talk to your system administrator about. you would need to set up your gmail account to check the emails sent to your school account as well. you can do that through gmails website through settings, then accounts and import, then check mail using pop3. you should be able to get the settings you'll need from your sysadmin.
I have used Outlook forever and thinking about changing but there are some things I do not know about Gmail that may not be possible. I have been stuck on Outlook because I have total control of my mailbox on my home server (.pst file) and I use a two business emails addresses from domains I own.
1. I own two domains and I have emails addresses I created from them. How or can they work in Gmail so email from my paid email addresses hit gmail then my device?
2. How much stored mail can I keep in gmail...my .pst file for Outlook is big?
I have had a gmail address for years but do not use it at all besides for the market I use emails from my domain but I would like to get the wireless sync going if it all can work in gmail...
Advise...
you can setup forwarding to forward all ur mail to gmail.
if these servers support imap/pop u can do wireless sync without having to first go to gmail. the phone fully supports configuring your own server settings for mail.
I run a small biz off of google apps.
While I'm not savvy on everything outlook has to offer at the server level, I was amazed at the options google apps domain and email hosting offered to make a transition from any platform.
Well looks like it works but I have one problem...
I setup the pop mail account in gmail from my PC off the website. I can send\compose emails and select my pop mail account to send. However from the Droid, when I compose I only see gmail...how can I see the pop I created from the website to push to my DINC? I want to be able to select the pop account I want to send from off the phone for gmail?
Hello,
I am very new to Android. I just received my Note 10.1 today. I am trying to configure my gmail and other mails on it. I want to use the mail app for all my emails instead of GMAIL app. How do I do that? When I initially booted the device, I used my gmail account and it automatically configured my gmail on the GMAIL app. I configured gmail on the native mail app as well. Now I have my gmail on both places, I want to use only the native mail app. Removing email sync under settings > accounts> is causing a sync error icon and it also cause the GMAIL app to crash.
Like I said I am very new to Android, this is my first android device. Can someone help me configure this? Hope I posted this on the right forum.
TIA
kumki said:
Hello,
I am very new to Android. I just received my Note 10.1 today. I am trying to configure my gmail and other mails on it. I want to use the mail app for all my emails instead of GMAIL app. How do I do that? When I initially booted the device, I used my gmail account and it automatically configured my gmail on the GMAIL app. I configured gmail on the native mail app as well. Now I have my gmail on both places, I want to use only the native mail app. Removing email sync under settings > accounts> is causing a sync error icon and it also cause the GMAIL app to crash.
Like I said I am very new to Android, this is my first android device. Can someone help me configure this? Hope I posted this on the right forum.
TIA
Click to expand...
Click to collapse
Use another gmail account for your main android account. And then add your current gmail acount to email app..
Sent from my GT-N8000 using Tapatalk 2
emilfr said:
Use another gmail account for your main android account. And then add your current gmail acount to email app..
Sent from my GT-N8000 using Tapatalk 2
Click to expand...
Click to collapse
Hi, Thanks for reply. So you want me to use this new id to download apps etc on the play store, but use my main id for emails?
I don't use the Gmail app either. I use the Samsung stock e-mail client so my Exchange and other e-mail accounts are all in a unified inbox. Samsung's e-mail client can be set up on Gmail to receive "push" e-mail via Activesync. In the stock e-mail client set up a new e-mail account using your Gmail address and passord. On the first set-up page you'll see a "manual setup" option, select it.
Use these settings...
Under domain\user name enter...
google\"your e-mail address"@gmail.com
Under Exchange server enter...
m.google.com
Now you'll receive e-mails as they arrive in you Gmail inbox. This method is also less hard on the battery. Go in to Settings>Application manager and swipe three times to the left until "all" applications are showing. Scroll down to find the Gmail app. Open it and press "disable." Now all your Gmail will be routed through the stock e-mail client without being duplicated in Gmail.
P.S. - Gmail via Activesync is being discontinued to new users (legacy user's are protected) effective February 1, 2013.
BarryH_GEG said:
I don't use the Gmail app either. I use the Samsung stock e-mail client so my Exchange and other e-mail accounts are all in a unified inbox. Samsung's e-mail client can be set up on Gmail to receive "push" e-mail via Activesync. In the stock e-mail client set up a new e-mail account using your Gmail address and passord. On the first set-up page you'll see a "manual setup" option, select it.
Use these settings...
Under domain\user name enter...
google\"your e-mail address"@gmail.com
Under Exchange server enter...
m.google.com
Now you'll receive e-mails as they arrive in you Gmail inbox. This method is also less hard on the battery. Go in to Settings>Application manager and swipe three times to the left until "all" applications are showing. Scroll down to find the Gmail app. Open it and press "disable." Now all your Gmail will be routed through the stock e-mail client without being duplicated in Gmail.
P.S. - Gmail via Activesync is being discontinued to new users (legacy user's are protected) effective February 1, 2013.
Click to expand...
Click to collapse
***
Thanks for your reply. I have done the first part and it seems to be working. I see mails coming to the native mail app.
But I don't see an option to disable GMAIL app under app manager. All I have is force stop, uninstall updates, clear data, clear cache. NO other options. Am I missing something.
kumki said:
uninstall updates, clear data, clear cache.
Click to expand...
Click to collapse
Oops. To disable an app you always have to uninstall any updates to it first. Once you do that you'll see the "disable" option.
BarryH_GEG said:
Oops. To disable an app you always have to uninstall any updates to it first. Once you do that you'll see the "disable" option.
Click to expand...
Click to collapse
Ok, I did it. It removed the gmail app. I guess I am good now. Thanks.
Curious if anyone else has encountered this issue or may know if a solution.
I like to use the stock email app instead of the Gmail app. I setup my gmail account to sync via ActiveSync/Exchange instead of IMAP. However, this doesn't work on my Nexus 4. I get the following error:
Code:
You don't have permission to sync with this server. Contact your server's administrator for more information.
I find this highly strange as I setup all my android devices in this same manner and don't have any issues with the others. I know I have entered all the information correctly since I could probably do it blind and hands tied behind my back I've done it so many times...
Oh, and this seems to happen on both pure stock Android and CM10.1.. only one my nexus 4
Any thoughts or ideas would be great.
holtenc said:
Curious if anyone else has encountered this issue or may know if a solution.
I like to use the stock email app instead of the Gmail app. I setup my gmail account to sync via ActiveSync/Exchange instead of IMAP. However, this doesn't work on my Nexus 4. I get the following error:
Code:
You don't have permission to sync with this server. Contact your server's administrator for more information.
I find this highly strange as I setup all my android devices in this same manner and don't have any issues with the others. I know I have entered all the information correctly since I could probably do it blind and hands tied behind my back I've done it so many times...
Oh, and this seems to happen on both pure stock Android and CM10.1.. only one my nexus 4
Any thoughts or ideas would be great.
Click to expand...
Click to collapse
See the announcement part of this post.
http://www.engadget.com/2013/01/30/google-exchange-activesync/
We reached out to Google and received this confirmation: "As announced last year, our plan is to end support for new device connections using Google Sync starting January 30, 2013. With the launch of CardDAV, it's now possible to build a seamless sync experience using open protocols (IMAP, CalDAV and CardDAV) for Gmail, Google Calendar and Contacts. We'll start rolling out this change as planned across all platforms but will continue to support Google Sync for Windows Phone until July 31, 2013."
Wow... so I'm forced to either use Gmails crappy IMAP or use the official Gmail app which I despise. Thanks for the info. I read something about that but for some reason thought it only applied to non-android devices... must have mis-read.
Now if only I can trick my Nexus 4 into thinking it's my SGSIII or Gnex...
I'm in the exact same situation as OP and stumbled on this post in search for a solution...
Sigh...if anyone comes up with a solution please post it!
It's changed alot and is one of my favorite e mail apps but that's just the opinion
Sent from my Nexus 4 using xda premium
jay_236 said:
I'm in the exact same situation as OP and stumbled on this post in search for a solution...
Sigh...if anyone comes up with a solution please post it!
Click to expand...
Click to collapse
This is the solution I've come up with:
Create an Outlook.com email account
Go to Settings -> More Mail Settings -> Your Email accounts
Click "Add a send-only account" and enter your gmail address. Follow instructions to complete tast
Change "Default "From" Address" to your Gmail address
Log into your Gmail and go to settings -> Forwarding and POP/IMAP
Add your Outlook.com address and forward all mail to that address
Setup the email app up on your android device to connect to your Outlook.com account via ActiveSync (m.hotmail.com)
Done
I know its all really simple and not needed but see the attached screen shot.
It sounds like a pain in the ass but it works almost just as well. You will continue to receive your gmail on other devices just as you always have. When you reply to an email with your device that is syncing up with outlook.com, as outlined above, it will still be shown as coming from your Gmail address. Read the text below "Default "From" Address" in Outlook.com settings.
Email delivery is not as fast as directly connecting to gmail via ActiveSync, but it's not a 5 minute delay as it would be with IMAP either. Anyway, it's not ideal but in my opinion it's better than using the Gmail app.
holtenc said:
This is the solution I've come up with:
Create an Outlook.com email account
Go to Settings -> More Mail Settings -> Your Email accounts
Click "Add a send-only account" and enter your gmail address. Follow instructions to complete tast
Change "Default "From" Address" to your Gmail address
Log into your Gmail and go to settings -> Forwarding and POP/IMAP
Add your Outlook.com address and forward all mail to that address
Setup the email app up on your android device to connect to your Outlook.com account via ActiveSync (m.hotmail.com)
Done
I know its all really simple and not needed but see the attached screen shot.
It sounds like a pain in the ass but it works almost just as well. You will continue to receive your gmail on other devices just as you always have. When you reply to an email with your device that is syncing up with outlook.com, as outlined above, it will still be shown as coming from your Gmail address. Read the text below "Default "From" Address" in Outlook.com settings.
Email delivery is not as fast as directly connecting to gmail via ActiveSync, but it's not a 5 minute delay as it would be with IMAP either. Anyway, it's not ideal but in my opinion it's better than using the Gmail app.
Click to expand...
Click to collapse
I have the same problem. No fix there yet?