Read all email from admin account

Hi,
I have a portal page, and I need to put icon in the homepage when the user have email not read.
But my probleme is, is not possible to my to get the user password. So I created a power user to see all email account. I don't find a solution to use it...
So can't you help me please thank
jsgillca

Hi,
the "power user" can see all account in server.
So i need to add icon in web page when user have email not read.
This is my code.
Properties props = System.getProperties();
//props.setProperty();
Session session = Session.getDefaultInstance(props, null);
// -- Get hold of a IMAP message store, and connect to it --
store = session.getStore("imap");
store.connect(host, power_username, power_password);
//I need to change email account read to end_user_1
folder = store.getDefaultFolder();
if (folder == null) throw new Exception("No default folder");
// -- ...and its INBOX --
folder = folder.getFolder("INBOX");
if (folder == null) throw new Exception("No IMAP INBOX");
// -- Open the folder for read only --
folder.open(Folder.READ_ONLY);
int count = folder.getUnreadMessageCount();
So when I log with power_user I can not change email account to end_user so do you have solution for that?
thanks

Similar Messages

  • Multiple email accounts but they are all sending from same account.

    Set up with multiple email accounts but they are all sending from same account. I have checked account preferences and under composing they are to come from account of selected mailbox but this is not happening! Suggestions?

    They are all in the same folder and it says all images are there, but it is only showing 1 card's images at a time. Does anyone know how to fix this?
    This is kind of confusing, on the one hand you say "it says all images are there" and then you directly contradict this by saying "it is only showing 1 card's images at a time".
    Could you explain in a lot more detail what you see (and don't say "it", say exactly what part of Lightroom or what part of your operating system you are looking at), or show us a screen capture?

  • I have deleted all emails from my ICloud email account but my manage storage still shows that the mail is using 9.7GB.  Why isn't the number decreasing if all emails have been deleted?

    I have deleted all emails from my ICloud email account but my manage storage still shows that the mail is using 9.7GB.  Why isn't the number decreasing if all emails have been deleted?

    It might be caused by storage "buffering".  If so, the space will adjust automatically when another iCloud feature uses the space previously allocated to your deleted email.  See http://support.apple.com/kb/HT4873.

  • I have an imap account and deleted all mail from server. Once doing this all emails from my iPad -which was on a wi-fi- where automatically deleted. Fortunately these emails are still visible on my iPhone that was without connection. If I send all these e

    I have an imap account and deleted all mail from server. Once doing this all emails from my iPad -which was on a wi-fi- where automatically deleted. Fortunately these emails are still visible on my iPhone that was without connection. If I send all these emails to my iCloud account - they will remain into my outgoing folder until I open my wi-fi- …BUT will they be sent when I open my wi-fi connection, or since they are no longer on my server… be deleted for ever!?

    This is how IMAP works, if you delete from one device it will also be deleted in the other devices.
    iCloud do not backup e-mails.

  • I have a gmail account and have been able to check my emails on both my PC and iPad. For some strange reasons I am not able to read my emails from my iPad. It says I cannot open another account which is not what I need.Pls help.THANKS!

    Reading my email from my iPad which is no longer allowing me to do. Thanks!

    Hey there palmierl,
    Welcome to Apple Support Communities.
    It sounds like there’s an issue sending and receiving emails from your Gmail account on your iPad. Take a look at the article linked below, the troubleshooting suggestions it provides will likely resolve the issue.
    Gmail account cannot get or send email in iOS - Apple Support
    Cheers,
    -Jason

  • All emails from two POP accounts are gone prior to Dec 27.  Gmails emails are fine.

    All emails from two POP accounts are gone prior to Dec 27.  Gmails emails are fine.

    Try rebuilding the mailbox. This can take awhile if you have a lot of mail.
    Rebuild mailbox

  • I cannot send email from my account.

    I cannot send email from my account.  Connections Doctor reports that I am signed in and connected.  I I have updated all of my keychain information and my passwords are current. 

    Hi there,
    It sounds like you have already done a few of the steps, but I would still recommend reviewing the troubleshooting process found in the article below.
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/ts3276
    -Griff W.

  • How do I fix Mail in Snow Leopard where I cannot send emails from my account to another account I've set up in Mail, but the reverse works fine?

    I have a problem with Mail in Snow Leopard in that I cannot set up two email accounts for myself and my wife with the same ISP and have them operate properly.  I've set up the accounts in strict accordance with my ISP's instructions for setting up email accounts on Mac Mail but I cannot send an email from my account to my wife's without a drop-down message appearing that Mail 'cannot send the email from this server.  Please edit the server list'.  No amount of tweaking appears to work.  Applecare consultants have so far been unable to get it to work and a recent visit to the local Genius Bar in the Apple Store was fruitless also.  My ISP's help line was unable to solve the problem even with a supervisor level consultant.  The ISP concluded it was some kind of 'bug' in Mail.
    I could send emails from my wife's account to mine, but not vice versa; I could send emails to other addresees without any problem and I can send emails from my account to my wife's using the ISP's webmail.
    Does anyone please have a solution to my problem?  At the moment we're operating one account (mine) on my Macbook and my wife's is set up on her iPad2.  As we prefer to use the Macbook for storage and (using Time Machine) for back-up of our data, the two accounts on separate machines is a nuisance.
    Another factor is that I prefer to control when I download emails and set my preferences accordingly.  One of the so-called 'fixes' that were tried wound up downloading emails regardless of settings, even after removing my wife's account; the matter was remedied only after I had removed all accounts form Mail and started afresh from scratch.

    You'll have to pardon my ignorance of some  computer terminology; I'm a retired manager and not a computer technician, hence my muddling up of client and server terminology.
    Re your comment about Port 339: I did qualify this with (?).  As I wrote, it all happened at lightining speed and the guy at the Genius Bar didn't bother explaining what he was doing.  Port designation contained 3s and 9s to the best of my recollection.
    That said, you seem to be spot on re setting up a 'dummy' client in Mail.  I set it up as you suggested and I can send to and receive from this client without a problem.  You appear to have identified the solution, notwithstanding the claims of the ISP's 'experts'.
    The next problem I have now is sorting out my wife's mailbox that is so troublesome whenever I set it up on Mail.
    All the other set-up advice to date yielded a similar result; inability to send from my account to her inbox.  Perhaps deleting her details from the account altogether and setting them up again from scratch may be the solution and I shall try that in due course.  The impediment that I have with this at the moment is that my ISP admits that it has 'a technical problem with its email servers' and some of its related web pages that prevent my doing this myself.  I will have to go through the telephone 'help' line and ask the technician to set it up at their end on my instructions.  This has some disadvantages in that I have to divulge the password to the account to the operator rather than keeping it anonymous by doing it on-line.   You may have solved the problem, but until I can successfully sort out a working mailbox for my wife i cannot definitively say so.
    Many thanks for your perseverance.  You've made more sense than anyone else so far and that deserves some points, surely?

  • Can no longer send email from my accounts but can receive

    I have 5 email accounts set up on my imac. 3 are mine 2 are my partners. I can no longer send emails from my accounts but my partner still can. They all still receive mail but when I attempt to send mail I get:-
    Cannot Send Message Using Server
    Then i'm asked to select a different server from a list. I have tried all but to no avail.
    I first of all deleted my partners sky.com account because it appeared to me that this was maybe overiding all other accounts and it was no longer needed on imac.
    I then deleted one of my accounts - hotmail, to see if i added it again maybe it would work but now I cant even re add the mail account as everytime i go to mail, preferences account to set it up again the initial screen comes up with my partners details including the sky.com username and when i overwrite these and try to install hotmail acount I get told that logging in failed check user name and password is correct. Which they are.
    All used to work fine but now I have these problems, they appeared to have started when my partner set up an icloud account and is synching with this - could this be the cause?
    I can send email from my accounts from iphone still but no longer from imac.

    First,
    I'd run all availiable software updates. After that, I would try removing all of the accounts from "Mail", and then re-adding them. Be aware that if your folders and such are located on your mac, and not on the mail servers, you may risk lose some information (always have a back-up).
    Sometimes, when you have a number of e-mail account there can be server issues abound. I would go into the server lists and make sure that they are set properly. If you see the "use only this server" box, check it for each of them.

  • If I have two email accounts, one personal hotmail account and one MS Exchange work account, how can I setup individual notifications for each account. Right now, any email from any account has the same notification. I want work to be different than perso

    If I have two email accounts, one personal hotmail account and one MS Exchange work account on my iPhone 4s, How can I setup individual notifications for each account? Fore example, if I get a work email, I want to hear a DING, DING....If I get a personal email, I want to hear a BEEP, BEEP. Right now, any email from any account has the same notification. I want work incoming email notification to be different than personal incoming notification. The only semi-workaround I've seen is just disable any notification for the Hotmail account, so only work emails would notify. But then I don't know when I get a personal email. Even the lowely Blackberry Torch 9800 has this feature..not iPhone 4s??
    Thanks

    Sorry you get only one notification sound for all email accounts.  you can send a suggestion to apple here http://www.apple.com/feedback/

  • Apple Mail : Move emails from one account to another

    Good Day,
    I please need help with Apple Mail. A client of mine recently changed her email address from her webhost to online exchange. I setup her new email in Apple Mail and that is all working and nice.
    Her Apple mail now shows 2 accounts:
    - the old IMAP
    - the new Exchange
    I would like to consolidate all emails from her old IMAP account to her new Exchange account, so that they are all in one place. In Outlook you can just drag and drop emails and folders between the accounts, but my client says that that doesn't work in Apple Mail.
    How would I go about moving these emails from one email account within Apple Mail to another?
    Sorry for the trivial question, but I am a Windows girl and not as versed in Mac;)
    Thanks for the help!
    Maike

    Try creating a new mailbox in the On My Mac section and drag the e-mails there. Mail/Mailbox/New Mailbox.

  • When I update apps on my iphone, sometimes my current email comes up as my apple id, and sometimes my old email comes up as my apple id. How can I remove my old email from my account?

    When I try to update apps on my iPhone, sometimes my apple ID is shown as my current email, and sometimes my old email comes up. How can I delete the old email from my account?

    sealmajean wrote:
    I just delete the old app and repurchase the app again? They are all free apps.
    That's what I'd do, since they are all free apps. Be sure & delete in iTunes as well as on your phone. When prompted in iTunes, move all files to trash & empty your trash. You don't want any trace of them left.

  • Why is there no way to delete all emails from my iphone?

    Why is there no way to delete all emails from my iphone? IOS 7.1. Every other phone in the market allows you to 'select all' then delete.
    This trick of selecting one, then holding move, then unchecking (and subsequently moving all the emails to trash) doesn't work. I've read these suggestions and while it appears to work the emails just show up again once you leave and return to the inbox. Perhaps it worked on an older version of IOS.
    It blows my mind this is not a standard function. I get a few hundred emails at work every day, and most of the time I just want to delete all of them from the phone as I've read them already. Currently it seems i can only click edit and then have to check each email individually to be able to delete them at the same time; this is the definition of tedious. I would think there are millions of other iphone users who get their company email on their phones that must experience the same thing. It seems now i either spend 20 minutes a day deleting emails, or just let thousands of emails accumulate on the phone (taking up space and also making it hard to just review the most recent emails which is all I want to be able to do when checking email on my phone).
    I am hoping I am just missing some simple solution here that everyone else uses. Please help!!
    Mark

    Only Apple could answer as to why there is no "select all/"delete all" function in the iOS mail app. Users have been bemoaning this lack of functionality for years now. Like everyone else, you can submit feedback to. Apple here.
    Apple - iPhone - Feedback
    While I understand the whole idea of being able to use the phone on the run, if you have an IMAP email account, and if you have access to a computer at work during the day, use your "select all" function on the server and delete all of the unwanted email there and it will be removed from the phone as well.
    That doesn't solve the problem on the phone, but it gets rid of the email which is your ultimate goal anyway.

  • I want to authorizes all computers from my account

    I want to authorizes all computers from my account

    I quote from the document I linked to above:
    Click iTunes Store on the left side of iTunes.
    If you're not signed in to the store, click the Account button, then enter your account name and password.
    Click the Account button again (your Apple ID appears on the button), enter your password, and then click View Account.
    In the Account Information window, click Deauthorize All.
    Note: You may only use this feature once per year. The Deauthorize All button will not appear if you have fewer than two authorized computers. If you need assistance on using this feature, please contact iTunes Store support via email (http://www.apple.com/support/itunes/store/).

  • HELP: how to copy all emails from MacBook air to iMac

    I lost all emails from my iMac. (issue with some account)
    All thoses mails are in duplicate on my MacBook air.
    Is there a easy way to copy all my mail from MacBook Air to iMac?
    I have many mailbox.
    Thank you,

    Mail/MailboxExport Mailbox, copy to the iMac, then Mail/File/Import Mailbox.
    You can try using Screen Sharing to do them actual transfer or use an external dive.

Maybe you are looking for

  • Open/save dialog boxes not working correctly.

    Environment: CS6 (PS 13.0.1) Mac OS X 10.7.5. Plenty of hardware. (Generally starting with .CR2 RAW.) Two open/save problems Recently (maybe since the 13.0.1 update??), I have been having problems with the open and save as dialog boxes. First. The op

  • Lync on websearch only but updates from active directory are not processed.

    Hello, I use "websearch only" for "addressbookavailability". This is working fine on all client. I have a problem with changes in active directory. When we change for example "job title" of someone then the old "job title" stays present on lync clien

  • Project Name - Internal Number Range

    Dear All, When we create a solman project, manually we give the project name. Want to know whether it is possible to give a internal number range from which the project number should be picked automatically when we create a project. Thanks and Regard

  • PUBLISH ERROR!! "widget2_markup.html." ---what does this mean?!

    so for a coupe f days i have been trying to publish my website but every time i try this annoying thing comes up and i don't know how to get rid of it!!! PLEASE PLEASE help me!!!!

  • Color coding for C# (asmx webservices)

    Hello, It looks like Dreamweaver CS3 doesn't recognize webservice-files (asmx, ashx, ...) to be C# coded and doesn't provide any color coding etc. How can this be solved ? Any other usefull tips to make Dreamweaver a better C#-editor ? Code hinting f