Javax.mail.NoSuchProviderException: No provider for imap

Dear All,
Currently i am running weblogic 5.1 for my javamail Application/WebMail. I have copied mail.jar, activation.jar,pop3.jar,imap.jarmailapi.jar in weblogic\jre1_2\jre\lib\ext folder. I get "javax.mail.NoSuchProviderException: No provider " exception when i run jsp page.
Balaji

It looks like weblogic 5.1 (atleast the mail.jar) doesn't contain the pop3.jar, I guess. Check whether you can include pop3.jar in ur classpath..
-Narasimha

Similar Messages

  • Javax.mail.NoSuchProviderException: No provider for Address type: rfc822

    Use JavaMail 1.2 send Mail Errors:
    "javax.mail.NoSuchProviderException: No provider for Address type: rfc822"
    Why?
    Can you supply a stmp server name?
    Thanks.

    [skyask],
    Honestly, I am not very sure where the JVM is located for the WebLogic 5.1 application server. You probably need to contact your local BEA rep office for support.
    The jar file for the JavaMail API is either mail.jar (contains the API libraries) or mailapi.jar (contains the API libraries and all the providers), so I guess if you search the WebLogic directories, you might be able to locate it.
    It also depends on the OS platform that you are working on and the WebLogic installation documentation may give a clue or two where the .jar files for optional Java packages are found.
    HTH.
    Allen Lai
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

  • Javax.mail.NoSuchProviderException: No provider for SMTP

    whats the meaning of the following exception javax.mail.NoSuchProviderException: No provider for SMTP
    can any one help.
    thanks and regards.

    This exception is thrown when Session attempts to instantiate a Provider (e.g. (com.sun.mail.smtp.SMTPTransport)) that doesn't exist.
    Check if the smtp.jar is in the classpath.

  • Javax.mail.NoSuchProviderException: No provider for ifs1

    Similar to the question found in William Troper's thread run on
    November 1. We had mail code working fine, changed some
    variables to incorporate a migratable build and have now lost
    our mail functionality.
    We have followed William's advice by renaming all of Sun's Mail
    classes in the ~\9ifs\settings\META-INF directory and still no
    joy.
    Does anyone have any ideas of what is causing a "No provider for
    ifs1" error message?
    Cheers,
    Susan

    Hi Scott,
    These (among other) items are in my CLASSPATH (printed out at
    runtime)
    /projects/intranet/lib/mail.jar:/app/oracle/product/9.0.1S/9ifs/s
    ettings/META-INF:
    Here is my stack. Also, the code is EXACLTY the same between
    what was working and what is now not. Thanks for looking in to
    this:
    javax.mail.NoSuchProviderException: No provider for ifs1
         at javax.mail.Session.getProvider(Session.java:249)
         at javax.mail.Session.getTransport(Session.java:442)
         at javax.mail.Session.getTransport(Session.java:423)
         at com.mim.intranet.utils.MessageFactory.sendMesg
    (MessageFactory.java:130)
         at
    com.mim.intranet.unittest.utils.MessagingUT.testValidMesg
    (MessagingUT.java:56)
         at java.lang.reflect.Method.invoke(Native Method)
         at junit.framework.TestCase.runTest(TestCase.java:166)
         at junit.framework.TestCase.runBare(TestCase.java:140)
         at junit.framework.TestResult$1.protect
    (TestResult.java:106)
         at junit.framework.TestResult.runProtected
    (TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:131)
         at junit.framework.TestSuite.runTest(TestSuite.java:173)
         at junit.framework.TestSuite.run(TestSuite.java:168)
         at junit.framework.TestSuite.runTest(TestSuite.java:173)
         at junit.framework.TestSuite.run(TestSuite.java:168)
         at junit.textui.TestRunner.doRun(TestRunner.java:74)
         at junit.textui.TestRunner.run(TestRunner.java:200)
         at com.mim.intranet.unittest.AllTests.main
    (AllTests.java:40)
    4887 [main] WARN com.mim.intranet.unittest.utils.MessagingUT -
    Sending Exception
    F
    Time: 4.898
    There was 1 failure:
    1) testValidMesg(com.mim.intranet.unittest.utils.MessagingUT)
    junit.framework.AssertionFailedError: Failed sending message :
    com.mim.intranet.exception.IntranetException: Failed sending
    message encountered unexpected exception
    Wrapped Exception is : javax.mail.NoSuchProviderException: No
    provider for ifs1
         at
    com.mim.intranet.unittest.utils.MessagingUT.testValidMesg
    (MessagingUT.java:63)
         at com.mim.intranet.unittest.AllTests.main
    (AllTests.java:40)
    FAILURES!!!
    Tests run: 1, Failures: 1, Errors: 0
    com.mim.intranet.exception.IntranetException: Failed sending
    message encountered unexpected exception
    Wrapped Exception is : javax.mail.NoSuchProviderException: No
    provider for ifs1
         at com.mim.intranet.utils.MessageFactory.sendMesg
    (MessageFactory.java:187)
         at
    com.mim.intranet.unittest.utils.MessagingUT.testValidMesg
    (MessagingUT.java:56)
         at java.lang.reflect.Method.invoke(Native Method)
         at junit.framework.TestCase.runTest(TestCase.java:166)
         at junit.framework.TestCase.runBare(TestCase.java:140)
         at junit.framework.TestResult$1.protect
    (TestResult.java:106)
         at junit.framework.TestResult.runProtected
    (TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:131)
         at junit.framework.TestSuite.runTest(TestSuite.java:173)
         at junit.framework.TestSuite.run(TestSuite.java:168)
         at junit.framework.TestSuite.runTest(TestSuite.java:173)
         at junit.framework.TestSuite.run(TestSuite.java:168)
         at junit.textui.TestRunner.doRun(TestRunner.java:74)
         at junit.textui.TestRunner.run(TestRunner.java:200)
         at com.mim.intranet.unittest.AllTests.main
    (AllTests.java:40)
    -----------------------------------------------------------------

  • Es1javax.mail.NoSuchProviderException: No provider for pop3 ?

    What is wrong with this code?Do i need to specify a Provider? Where and when?
    String host = ...;
    String username = ...;
    String password = ...;
    // Create empty properties
    Properties props = new Properties();
    // Get session
    Session ses = Session.getDefaultInstance(props, null);
    // Get the store
    Store store = ses.getStore("pop3");
    store.connect(host, username, password);
    // Get folder
    Folder folder = store.getFolder("INBOX");
    folder.open(Folder.READ_ONLY);
    // Get directory
    Message message[] = folder.getMessages();
    for (int i=0, n=message.length; i<n; i++) {
    System.out.println(i + ": " + message.getFrom()[0]
    + "\t" + message[i].getSubject());
    // Close connection
    folder.close(false);
    store.close();
    Thank you all
    Dena

    [denapuerta],
    The exception that you are getting may mean that the java runtime environment that you are running your class file code on does not seem to have the JavaMail .jar files installed correctly. The JavaMail API packages are optional packages and must be downloaded and added to the J2SE runtime environment before such an application can run successfully.
    From the exception message, looks like either the pop3.jar file or the mailapi.jar (which contains all the JavaMail API and provider library files) is missing from the CLASSPATH of the JRE or not installed onto the <JRE install directory>/jre/lib/ext directory.
    What is wrong with this code?Do i need to specify a
    Provider? Where and when?I assume you obtained the code from the jGuru tutorial on JavaMail (which is a good tutorial to start off with). I have tested the code before and it works perfectly fine.
    String host = ...;
    String username = ...;
    String password = ...;
    // Create empty properties
    Properties props = new Properties();
    // Get session
    Session ses = Session.getDefaultInstance(props, null);
    // Get the store
    Store store = ses.getStore("pop3");
    store.connect(host, username, password);
    // Get folder
    Folder folder = store.getFolder("INBOX");
    folder.open(Folder.READ_ONLY);
    // Get directory
    Message message[] = folder.getMessages();
    for (int i=0, n=message.length; i<n; i++) {
    System.out.println(i + ": " +
    + message.getFrom()[0]
    + "\t" + message[i].getSubject());
    // Close connection
    folder.close(false);
    store.close();
    Thank you all
    Dena
    You might also want to check the username/password and hostname string entries to see if you are really connecting to the POP3 mail server correctly.
    HTH.
    Allen Lai
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

  • Exception in thread "main" javax.mail.NoSuchProviderException: invalid prov

    HI,
    I am trying to read mails from my inbox i amgetting the ErrorC:\javamail>java
    Readmail
    Exception in thread "main" javax.mail.NoSuchProviderException: No provider for IMAP
            at javax.mail.Session.getProvider(Session.java:455)
            at javax.mail.Session.getStore(Session.java:530)
            at javax.mail.Session.getStore(Session.java:510)
            at Readmail.main(Readmail.java:24)My Code is    {
    String host = "hostname";
    String username = "user";
    String password = "password";
    // Create empty properties
    Properties props = new Properties();
    // Get session
    Session session = Session.getDefaultInstance(props,null);
    // Get the store
    Store store = session.getStore("IMAP");
    store.connect(host, username, password);
    // Get folder
    Folder folder = store.getFolder("Inbox");
    folder.open(Folder.READ_ONLY);
    // Get directory
    Message message[] = folder.getMessages();
    for (int i=0, n=message.length; i<n; i++)
       System.out.println(i + ": " + message.getFrom()[0]
    + "\t" + message[i].getSubject());
    // Close connection
    folder.close(false);
    store.close();
    I have also tried POP3 and MIME and SMTP
    Can anyone help me Thanks

    hi bshannon,
    I am getting the same error for others but for pop3 the error is as below
    Exception in thread "main" javax.mail.MessagingException: Connect failed;
      nested exception is:
            java.net.ConnectException: Connection refused: connect
            at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:148)
            at javax.mail.Service.connect(Service.java:275)
            at javax.mail.Service.connect(Service.java:156)
            at Readmail.main(Readmail.java:25)
    Caused by: java.net.ConnectException: Connection refused: connect
            at java.net.PlainSocketImpl.socketConnect(Native Method)
            at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
            at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
            at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
            at java.net.Socket.connect(Socket.java:452)
            at java.net.Socket.connect(Socket.java:402)
            at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232)
            at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
            at com.sun.mail.pop3.Protocol.<init>(Protocol.java:81)
            at com.sun.mail.pop3.POP3Store.getPort(POP3Store.java:201)
            at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:144)
            ... 3 more

  • NoSuchProviderException: No provider for Address type: rfc822

    this is the stack : No provider for Address type: rfc822
    javax.mail.NoSuchProviderException: No provider for Address type: rfc822
         at javax.mail.Session.getTransport(Session.java:475)
         at javax.mail.Transport.send0(Transport.java:154)
         at javax.mail.Transport.send(Transport.java:80)
    I know what it means....but why it happens?
    please help!!!!!!!!!!!!

    [joyrex75],
    I suspect that the CLASSPATH settings on the machine that you are using is pointing only to the mail.jar file. If you are setting up the Java runtime environment that includes only the mail.jar file, your runtime environment will not have the mail providers such as the POP3, IMAP or SMTP .jar files.
    Point your CLASSPATH to the mailapi.jar file which contains the JavaMail APIs and all the mail protocol providers that SUN supports i.e. POP3, IMAP and SMTP. Try to execute the java command on your JavaMail application and see if throws out the Exception again.
    HTH.
    Allen Lai
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

  • Javax.mail.NoSuchProviderException

    Hi!
    I have written a java program for sending mail. I 'm getting these error msgs when i run the program. I have used Netbeans 5.5 ,so I have JavaMail jar files and Java Activation Jar file associated with my web application already. can u please help me?
    here is the error msg
    Messaging Exception Occured:-->javax.mail.NoSuchProviderException: No provider for smtp.gmail.com javax.mail.NoSuchProviderException: No provider for smtp.gmail.com at javax.mail.Session.getProvider(Session.java:455) at javax.mail.Session.getTransport(Session.java:650) at javax.mail.Session.getTransport(Session.java:631) at Mailtest.MailClient.send(MailClient.java:92) at Mailtest.MailClient.doGet(MailClient.java:51) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844) at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287) at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212) at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252) at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    And here goes my code
    package Mailtest;
    import java.io.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.servlet.ServletException;
    import javax.mail.Authenticator;
    import javax.mail.PasswordAuthentication;
    import javax.mail.NoSuchProviderException;
    * @author mitalib
    * @version
    public class MailClient extends HttpServlet {
    /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
    * @param request servlet request
    * @param response servlet response
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    out.println("<html>");
    out.println("<head>");
    out.println("<title>First Servlet</title>");
    out.println("</head>");
    out.println("<body bgcolor=\"white\">");
    out.println("<h1>Hello welcome to Mailing Service </h1>");
    out.println("<h2>Sending mail </h2>");
    try
    send("[email protected]", "[email protected]", "First Program ", "First Mail send by Servlet");
    out.println("\nMail send successfully-----");
    catch(AddressException ae)
    out.println("Address Exception Occured-->"+ae.getMessage());
    ae.printStackTrace(out);
    catch(MessagingException me)
    out.println("Messaging Exception Occured:-->"+me);
    me.printStackTrace(out);
    out.println("</body>");
    out.println("</html>");
    public void send(String s, String s1, String s3, String s4)
    throws AddressException, MessagingException
    String strHost = "smtp.gmail.com";
    Transport trans = null;
    int intPort =465;
              Address recp[];
              Address from = new InternetAddress(s);
              recp = new InternetAddress[1];
              recp[0] = new InternetAddress(s1);
              //recp[1] = new InternetAddress(s2);
    Properties prop = new Properties();
         prop.put("mail.transport.protocol","smtp");
    prop.put("mail.smtp.host", strHost);
    prop.put("mail.smtp.port", ""+intPort);
    prop.put("mail.smtps.auth ","true ");
    prop.put("mail.smtp.starttls.enpable","true");
    SMTPAuthenticator auth = new SMTPAuthenticator("[email protected]", "XXXXXXXXXX");
    Session session = Session.getDefaultInstance(prop, auth);
    session.setDebug(true);
              trans = session.getTransport(strHost);
              trans.connect(strHost,"[email protected]","xxxxxxxxxx");
              MimeMessage msg = new MimeMessage(session);
    msg.setFrom(from);
    msg.addRecipient(Message.RecipientType.TO, recp[0]);
    msg.setSubject(s3);
    msg.setText(s4);
              trans.sendMessage(msg,recp);
    class SMTPAuthenticator extends Authenticator
    public SMTPAuthenticator(String s, String s1)
    user = s;
    password = s1;
    public PasswordAuthentication getPasswordAuthentication()
    return new PasswordAuthentication(user, password);
    private String user;
    private String password;
    Please Help.
    Thanks in advance

    String strHost = "smtp.gmail.com";...
              trans = session.getTransport(strHost);You figured out that the above line is the line that caused the
    problem, right?
    And then after reading the javadocs that say:
    Get a Transport object that implements the specified protocol.
    You just couldn't figure out why "smtp.gmail.com" was not a valid
    protocol, right?
    The protocol name is "smtp". "smtp.gmail.com" is a host name.

  • Error javax.mail.NoSuchProviderException: pop3

    When my application runs within JBuilder everything works fine. But with a native executable I get the following error: javax.mail.NoSuchProviderException: pop3.
    The Dependencies property for JavaMail=Include Dependencies. When set to Include All the native executable not even starts.
    What is wrong here?
    Greetings,
    Hans

    I had some difficulty looking for a solution to this problem.
    All solutions 'beat about the same bush' but I couldnt get any of them to work.
    My advice is dont give up- the problem will eventually be resolved.
    How I resolved it was to assume, ( rightly) that when working inside JBuilder, it is not using the machine classpath to find library files such as mail.jar, but looking at its own library of jar files to find mail.jar.
    I tracked down the JBuilder mail.jar in the /lib dir and copied out all classes beginning with POP... also all non Class files eg proviider and map files , the mailcap file and all files beginning with SUN, and also the Manifest file and placed them in a separate folder on the hard drive.
    I then made an application jar definition from my JBuilder application but told it NOT to make a manifest file.I then right clicked on the build file, and selected properties/content and added in all files from the directory that I previously made containing the files mentioned above.
    To the Manifest file in that directory I also added the mine Main Class: to tell it where my main class was.
    I then re-built the executable jar file.
    It worked. Just when I was down to pulling out the last tuft of hair.
    Message was edited by:
    1straybullet

  • I keep getting a message Cannot Get Mail No password provided for "MobileMe"

    I have upgraded to 4S and the phone is functioning properly but I keep getting some error messages.  In Mail, I keep getting the prompt - Cannot Get Mail  No password provided for "MobileMe". Please go to Mail Account Settings and enter a password.
    When I click Settings, I have already removed the "MobileMe" account from my phone & am receiving the MobileMe mail through the iCloud account that is set up.  And that iCloud account is functioning properly. 
    So the Mail is attempting to pull mail from an account I deleted off my iPhone & then when I try to follow the prompts to fix the problem & enter a password, it's no longer there.

    Hello Laurel,
    Thank you for the details of the issue you are experiencing with your email account on your iPhone.  I recommend the following article to troubleshoot the issue you described:
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How does Mail 4 organize folders for IMAP vs POP in sidebar?

    Can someone explain how Mail organizes the sidebar for POP vs IMAP and what would happen if I switched totatlly to IMAP?
    I'm a bit confused by how Mail is organizing the folders in the sidebar for an IMAP account. Way back in Panther days I had an IMAP mac.com email for a year or two and if I recall correctly I saved it in On My Mac as a folder. Same for a POP account I was getting rid of.
    Since then I have had only POP accounts (including a gmail account). I managed to keep the inboxes (at least) in sync by not removing mail from the server so that my ipod, iphone, and other Macs can log into the mail server too. This has worked OK. However, since I send a lot of mail from my iPhone, I'm wondering if it's time to switch to IMAP since I will be giving up several ISP issued email addresses that only use POP.
    I signed up for a new gmail account recently and it set up as an IMAP account by default. Now there's a folder for the new IMAP Gmail account at the bottom of the sidebar under On My Mac folders. It doesn't have an inbox or sent folder but does have a "sent items" folder.
    Additionally, at the top of the sidebar is "Mailboxes" with Inbox, Sent, Drafts, Trash and under these are a subfolder for each POP account and also one for the new IMAP gmail. It seems weird to have the inbox and sent items so far away from the rest of the folders. I'm also not clear if it's keeping 2 copies on my hard disk one in the top mailboxes under "Sent" and one at the bottom Gmail folder under "sent items".
    Finally, I'm wondering would it be prudent to back up all of the existing POP mailboxes or move everything to On My Mac before switching some of the other mail accounts over to IMAP? I will want to keep archives of the ISP emails when I cancel my service with them.
    Thanks for any clarification and advice.

    You Wrote:
    This is what Gmail help suggests to set
    Drafts:
Store draft messages on the server > do NOT check
    Sent:
Store sent messages on the server > do NOT check
    Junk:
Store junk messages on the server > checked
Delete junk messages when > Never
    Trash:
Move deleted messages to the Trash mailbox > do NOT check
Store deleted messages on the server > do NOT check
    These settings in Mail on your Mac or other device is what you want that device to do with these folders. If you want to be able to start a message on an iPhone and finish it on your Mac, then check the setting on the iPhone to store the draft message on the server. Then, it will be available on all other devices set up with the account to finish it. You would need to set each device to the settings you wish. You really don't want to store anything useless like junk mail or trash on the server and take up server space.
    You Wrote:
    As I understand it, the IMAP keeps a local cache and the servers synced. However, Mail sends email and stores it in the Sent folder and the web interface sends email from the Sent Mail folder. Can't I tell Mail to store outbound mail in Sent Mail?
    As I understand it, if you send a message from your IMAP account from Mail on your Mac, it will also copy it to the Sent Items folder in IMAP to be seen from any device. If you delete it from the IMAP Sent Items folder, you won't see it on any other device. It will still be in the Sent Mail on the Mac you sent it from. That is a local folder on that particular device.
    The advantage of the IMAP account is that you can control email from multiple devices either locally on them if it is set up with that account or from any browser without having to physically sync all of them together. Like you said, you have to leave the messages on the server to view them on other devices and it also takes up storage on each device.
    If you want to store them locally to be saved on one computer, then move or copy them from the IMAP folder to a local folder on that computer.
    As Barney suggested, enable the advanced IMAP controls in the Labs section on the gmail website settings. That will give you much more control on what you see in Mail on your Mac.
    For example, after enabling this feature, I went  to the Labels section in settings on the website and unchecked all boxes to show in IMAP. the only one left is Inbox which you can't disable. When I go to Mac Mail, I don't see any gmail folders except an Inbox subfolder for gmail, a gmail subfolder for sent, and a gmail subfolder for trash.
    I have also checked the box in the Mac account settings on the Trash to move deleted messages to the trash, but not store them on the server. That way, a copy goes to the trash on my Mac and it puts the subfolder in the Mail Trash.
    I have also set Mail Preferences in gmail under the Forwarding and POP/IMAP tab to Auto Expunge off and immediately delete messages forever. I did this to keep the gmail site clean and to give all control to my Mac since I never pull it up at the gmail website except when away on vacation.

  • As of Friday Night, Apple MAIL (in Tiger) asks for imap password? Why?

    As of Friday night, when accessing my email (via AOl's imap server enabled through Tiger's 10.4.8 Mail, I can no longer get my new mail. I changed no settings on the computers (this began occurring on two of my Macs--a 15-inch G4 Titanium PB 867 and a Dual 1 GHZ Quicksilver) within the Apple Mail apps. I just started getting this weird alert/dialog box saying "unable to recognize your 'imap' password, please re-enter"--which I then did--to no avail. I could not get any new mail.
    Now, on my other Mac, a G4 Upgraded B&W G3 running Panther, the mail runs fine. I can see my new mail--which I tested by sending a message from the "Tiger" computers to myself. The message would be sent--I could hear the "whoosh"--but not show up in the Tiger mailboxes. Of course--got in the Panther 10.3.9 Mail In-box no sweat!
    Rebuilt permissions on both machines, still no change. The e-mail works fine when I access it via the web (through AOL), but I just can't figure out what happened since Friday night? Is AOL having IMAP server trouble? I just dunno. All I do know is that my mail is now broken under Tiger and I now have to go through more hoops to get my mail--the extra webmail shenanigans are a kludge, and having an Airport card in the PB is sort of negated a lot having to do teh whole webmail access when it worked so well before just hitting my "Mail" icon.
    I've checked the forums and seen nothing mentioned about any "problems" since last night, sooooo, I guess maybe it's ME...but, on both computers? Weird.
    Any help wopuld be greatly appreciated.
    Thanks much,
    Yusuf Lamont

    OK, I just want to make clear that Mail is asking for the Keychain password over and over again, periodically, while Mail is open. It does not ask for the passwords to individual accounts. There is no problem logging into any of the three email accounts I have activated. The normal behavior of Mail is to ask for the Keychain password once upon launch. What it does now, is continue to ask for the Keychain password periodically - perhaps every fifteen minutes, or so.
    I have tried:
    Running Keychain Repair. It did find problems, repaired them, but this did not resolve the issue.
    Disabled accounts one at a time, hoping to isolate the problem to one account - no luck. Then I disabled all at once. Mail continued asking for Keychain password, even though all accounts were disabled.
    Deleted Keychain Items associated with these e-mail accounts, and re-created them. This did not resolve the issue.
    Cursing Mail each time it asked for, and I had to re-enter, the Keychain password. This, also, did not resolve the issue.
    I can't see anything in the Console associated with Mail. What would cause Mail to ask for the main password after it's already been entered? It seems to me that if the problem were coming from a server, it should cease once the account's been disabled. If it were a Keychain issue, I would expect to have problems with other apps. Obviously, it's not a problem with the Keychain Items themselves since they were deleted and re-created. That leads me to think the problem is with Mail. But, I've been wrong before....

  • Read  the email using java mail api for Imap account which is secured SSL

    hello,
    I am trying read the new mails on my imap account... i am not able to connect to the imap account... could anyone help me out ..
    below is the code
    public class EmailImapGateway implements MessageCountListener{
    private static final long serialVersionUID = 1L;
         private Session session = null;
         private IMAPStore store = null;
         private IMAPFolder folder = null;
         Properties props = new Properties();
         public void ejbCreate() {
         try {
         if (session == null)
              session = Session.getDefaultInstance(props, null);
              if (store == null || !store.isConnected()) {
    String host, name, passwd;
         host = "host";
              name = "user";
              passwd = "passwd";
              String SSL_FACTORY = "javax.net.ssl.SSLSocketFactory";
              props.setProperty("mail.imap.socketFactory.class", SSL_FACTORY);
              props.setProperty("mail.imap.socketFactory.fallback", "false");
              props.setProperty("mail.imap.socketFactory.port", "888");
              java.security.Security.setProperty( "ssl.SocketFactory.provider", SSL_FACTORY);
              props.put("mail.imap.host", host);
              props.put("mail.imap.port", "888");
              store = (IMAPStore) session.getStore("imap");
              store.connect();
              folder = (IMAPFolder) store.getFolder("Inbox");
              folder.open(Folder.READ_WRITE);
              int t = folder.getUnreadMessageCount();
              System.out.println("getunreadmessagecount is :" + t);
    }catch (Exception e) {
              e.printStackTrace();
         } finally {
              try {
                   folder.close(true);
                   store.close();
              } catch (MessagingException e) {
                   e.printStackTrace();
         public void ejbActivate() throws EJBException, RemoteException {
              // TODO Auto-generated method stub
         public void ejbPassivate() throws EJBException, RemoteException {
              // TODO Auto-generated method stub
         public void ejbRemove() {
              // TODO Auto-generated method stub
         public void messagesAdded(MessageCountEvent arg0) {
              System.out.println("Message is added in inbox");
         public void messagesRemoved(MessageCountEvent arg0) {
              System.out.println("Message is removed from inbox");
    it is not able to connect to my account
    Edited by: bhavna84 on Sep 8, 2008 11:10 PM
    Edited by: bhavna84 on Sep 8, 2008 11:20 PM

    Yes, see my previous post.
    He replied:
    hello
    In your code ur mention IMAP port 888
    but by default its 143 so chk your server configuration for IMAP port no.

  • Setting Importance Level for a email message using javax.mail.* API

    Setting Importance Level for a email message using javax.mail.* API
    From what I understand we can set Flag on Email Message. How can we set Importance Leve: High/Low for an email message?
    Thanks
    Purvi

    Most of the message Flags work only for IMAP mailboxes. POP3 supports only the DELETED flag. It must be understood that Javamail is a framework which provides all the features available in a standard mailing system. But whether or not a particular feature works is a functionality of the particular implementation being used.
    Thus for example POP3 cannot differentiate read from unread messages in a mailbox though Javamail provides that feature.

  • Best E-Mail Provider For iPhone

    What is the best email provider for iPhone. I have used hotmail for a long time, but I know that's not a good one to use with the iPhone, so I'm looking to start a new email account. Is there one email provider that I should clearly go with?

    The free Yahoo account provided for iPhone customers, which can be accessed as a standard IMAP or Push-IMAP account - with account settings available on the iPhone to switch between the two protocols, cannot be accessed with an email client on your computer - such as with Outlook or Outlook Express.
    You can access a Gmail account as an IMAP account with an email client on your computer as well as with the iPhone's Mail client - keeping the account's server stored mailboxes synchronized between the email client used on your computer to access the account and with the iPhone's Mail client.
    A Push-IMAP account provides for not having to check the account's incoming mail server for new messages but IMO, not worth having if I can't access the account with an email client on my computer also.

Maybe you are looking for