Results 1 to 2 of 2
  1. #1
    extempore is offline Member
    Join Date
    Jan 2009
    Posts
    2
    Rep Power
    0

    Default Accessing Sent Mail folder

    Hi,

    I have created a class which can access the Inbox folder of my email account.But when I try to access other folders such as Sent Mail,Trash etc. its giving me exception

    javax.mail.FolderNotFoundException

    this is how I am accessing my Inbox

    Folder inbox = store.getFolder("INBOX");
    inbox.open(Folder.READ_WRITE);

    Folder sentbox = store.getFolder("SENT MAIL"); sentbox.open(Folder.READ_ONLY);

    Kindly provide the solution

    Thanks

  2. #2
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    8

    Default

    Folder not found sounds pretty self-explanatory. Either you are using the wrong name, or your mail provider doesn't provide access. Check their documentation; if you can't find the answer, then contact their support.

Similar Threads

  1. Replies: 2
    Last Post: 05-05-2008, 07:01 AM
  2. Retreiving of mail body using mail number
    By chandu.v09 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 03-13-2008, 03:25 PM
  3. add password to folder
    By ismailsaleh in forum AWT / Swing
    Replies: 1
    Last Post: 01-08-2008, 06:46 AM
  4. Sending a mail with the local mail program
    By thedude in forum Advanced Java
    Replies: 2
    Last Post: 07-23-2007, 01:19 PM
  5. creation of new folder in the mail
    By an8086 in forum Advanced Java
    Replies: 1
    Last Post: 07-15-2007, 06:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •