Read mail using java, and set the mail

How can I read mail and set message "SEEN" with java? (javax.mail)
IMAP supports flags; so there are no problems, just using
msg.setFlag(Flags.Flag.SEEN, true);
but,
POP3 does not support flags; how can I solve this in POP3? I have searched for this problem, found that I can just check for the header "Status", but this header does not exsist. Then I tried to add this header, but again, then I got IllegalWriteException cause pop3-msg is writeprotected (yes: I opened the folder READ_WRITE); so; does anyone know how I can solve this problem?

Hi !
Could u plz send me the code u r having for reading mails using IMAP...actually v r trying to read mails from outlook but due to some security reasons our team has decided not to use pop3 ...
Thanks in Advance
sha

Similar Messages

  • Sending udp packets using java and receiving it using c

    hi,
    Is it possible to send udp packets using java and receive the same using c??????? if yes.... plz help immediately.

    The biggest issue is data format. The JVM is big endian, with 16-bit characters. The machine running 'C' could be almost anything. A (signed!) byte array is probably the easiest unit of exchange.
    The Java program has its own techniques for storing/retrieving data to/from the byte array - and the C program has its own techniques. ASCII Strings are often the easiest to exchange - just convert the java String objects to byte array and send them.
    apaliwal1 has already given the UDP calls to send/receive the data.

  • How to set the Mail and Fax options  for the Smartforms ???

    How to set the Mail and Fax options  for the Smartforms ??? Please reply me very soon. Its a life deciding question now for me. Please .

    >
    veera Karthik wrote:
    > How to set the Mail and Fax options  for the Smartforms ??? Please reply me very soon. Its a life deciding question now for me. Please .
    Hi
    Check this Link:
    http://help.sap.com/saphelp_nw04/helpdata/en/a5/28d3b9d26211d4b646006094192fe3/frameset.htm
    P.S: Never say reply me soon....people answer you here voluntarily and as everyone has their own desk to manage...sp replies may late or early..depending upon the availabality of the members.
    Vishwa.

  • When I copy and paste from Word to my e-mail using Firefox it changes the font and spacing to single and 10pt. It just started doing this a month ago. It does not do it when I am on my laptop or using Explorer. Help, I hate explorer.

    When I copy and paste from Word to my e-mail using Firefox it changes the font and spacing to single space and 10pt.
    It just started doing this a month ago.
    It does not do it when I am on my laptop or using Explorer.
    Help, I hate explorer.

    If this were a project that I was involved in, I would recapture the media at the correct frame rate and rebuild the sequences correctly.
    Moving from production, to post production, to delivery is a series of steps, and the success of any particular step is based on having all the preceding steps done correctly.
    Shortcuts and workarounds tend to create awkward and difficult problems, that often only surface late in the process.
    MtD

  • F mail,I am not able to highlight and click (quit mail) I have read and watched the mail video's but have not fixed it.

    Hello,
    I am not able to sign off from the mac,when I try the mac says my mail program will not allow it,when I try to sign out of mail,I am not able to highlight and click (quit mail.) I have read and watched the mail video's but have not fixed it. If possible could someone who has had this issue share the solution they came up with to address the problem with me please? Thank you.

    press command-option-esc keys and force quit out of Mail.

  • How to read outlook mail using java

    Hi,
    I am new to javamail ,
    I want to read outlook mail using java
    thanks
    Edited by: My_Problems on Jun 20, 2008 11:13 AM

    Hi!
    See Java Api Msgparser in GNU General Public License...
    A parser for .msg Files in Java :
    [http://auxilii.com/msgparser/|http://auxilii.com/msgparser/]
    Use POI... Apache POI - Java API To Access Microsoft Format Files...
    regards,

  • Cannot send email w/mac mail using Juno and Tiger

    Hello!
    I have had a problem ever since I upgraded last year to Tiger. I have Juno, and ever since I upgraded from Jaguar, I cannot use the Juno software to log on. But more annoying that that (I have a work around that works just fine), I cannot send email from my mac mail. If I want to send an email or respond to an email, I have to physically log onto Juno's website and email and write and send from there. I have contacted Juno numerous times, and they tell me to reset my password, which makes no sense to me. Any Ideas?

    Regarding not being able to send mail with your .Mac account and .Mac SMTP server, most if not all ISPs used for connecting to the internet block the use of SMTP servers outside of their network on Port 25. Some ISPs allow the use of an authenticated SMTP server only (such as the .Mac SMTP server) that is outside of their network on Port 25 but some block its use regardless. These restrictions are in place as part of an overall effort to prevent or reduce spam eminating from the ISP's domain.
    Something to try.
    Go to Mail > Preferences > Accounts and under the Account Information tab for your .Mac account preferences at the SMTP server selection, select the Server Settings button below.
    At the Server Port field, enter 587 in place of 25 and when finished, select OK to save the changed setting.
    If this is not successful, select/use your ISP's SMTP server to send mail with your .Mac account which is invisible to all recipients.

  • Sending an e-mail using java

    Hi,
    I am sending an e-mail using java. It works fine, but I wanted to know if there is any possibility to attach a document, without using a File object. Because I have to write the File object and then delete it at the end. I would like to know if I can use for example a byte [], or something else.
    Thank you very much.
    This is my code, if that helps.
    public static void sendWithAttach(String p_sender, String p_receiver, String p_subject,
    String p_comment, int p_nombrePiecesJoints, HashMap<String, byte[]> p_files) {
    Properties props = System.getProperties();
    props.put("mail.smtp.host", Solapcore.getCurrent().getServletConfig().getServletContext().getInitParameter("SMTP"));
    Session session = Session.getDefaultInstance(props, null);
    MimeMessage sender = new MimeMessage(session);
    MimeBodyPart mbp1 = new MimeBodyPart();
    Multipart mp = new MimeMultipart();
    List<File> listeFiles = new ArrayList<File>();
    try {
    //On assigne to, from, subject, body, priority
    sender.setRecipients(javax.mail.Message.RecipientType.TO,
    InternetAddress.parse(p_receiver, false));
    sender.setFrom(new InternetAddress(p_sender));
    sender.setSubject(p_subject);
    mbp1.setText(p_comment);
    //sender.setPriority(0);
    mp.addBodyPart(mbp1);
    //On attache les documents
    for(Map.Entry<String, byte[]> entry : p_files.entrySet()) {
    MimeBodyPart mbp2 = new MimeBodyPart();
    String fileName = entry.getKey();
    byte [] dataFile = entry.getValue();
    File file = new File(fileName);
    FileOutputStream fos = new FileOutputStream(file);
    fos.write(dataFile);
    mbp2.attachFile(file);
    mbp2.setFileName(fileName);
    mp.addBodyPart(mbp2);
    listeFiles.add(file);
    sender.setContent(mp);
    Transport.send(sender);
    }catch(MessagingException mex) {
    mex.printStackTrace();
    }catch(FileNotFoundException fnf) {
    fnf.printStackTrace();
    }catch(IOException ioe) {
    ioe.printStackTrace();
    }finally {
    Iterator<File> itListeFiles = listeFiles.iterator();
    while(itListeFiles.hasNext()) {
    File tempFile = (File)itListeFiles.next();
    tempFile.delete();
    }

    Thank you very much.
       public static void sendWithAttach(String p_sender, String p_receiver, String p_subject,
          String p_comment, int p_nombrePiecesJoints, HashMap<String, byte[]> p_files) {
        Properties props = System.getProperties();
        props.put("mail.smtp.host", Solapcore.getCurrent().getServletConfig().getServletContext().getInitParameter("SMTP"));
        Session session = Session.getDefaultInstance(props, null);
        MimeMessage sender = new MimeMessage(session);
        MimeBodyPart mbp1 = new MimeBodyPart();
        Multipart mp = new MimeMultipart();
        List<File> listeFiles = new ArrayList<File>();
        try {
          //On assigne to, from, subject, body, priority
          sender.setRecipients(javax.mail.Message.RecipientType.TO,
              InternetAddress.parse(p_receiver, false));
          sender.setFrom(new InternetAddress(p_sender));
          sender.setSubject(p_subject);
          mbp1.setText(p_comment);
          //sender.setPriority(0);
          mp.addBodyPart(mbp1);
          //On attache les documents
          for(Map.Entry<String, byte[]> entry : p_files.entrySet()) {
            MimeBodyPart mbp2 = new MimeBodyPart();
            String fileName = entry.getKey();
            byte [] dataFile = entry.getValue();
            File file = new File(fileName);
            FileOutputStream fos = new FileOutputStream(file);
            fos.write(dataFile);
            mbp2.attachFile(file);
            mbp2.setFileName(fileName);
            mp.addBodyPart(mbp2);
            listeFiles.add(file);
          sender.setContent(mp);
          Transport.send(sender);
        }catch(MessagingException mex) {
          mex.printStackTrace();
        }catch(FileNotFoundException fnf) {
          fnf.printStackTrace();
        }catch(IOException ioe) {
          ioe.printStackTrace();
        }finally {
          Iterator<File> itListeFiles = listeFiles.iterator();
          while(itListeFiles.hasNext()) {
            File tempFile = (File)itListeFiles.next();
            tempFile.delete();
        }

  • I am trying to create another email account with talk talk. and I keep getting a failed message saying 'mail could not log into the mail server talk talk. Yet I already have another email account with talk talk. Not sure what I am doing wrong

    I am trying to create another email account with Talktalk. I already have one account.
    I try to input the new email address and password and get a failed message
    'Mail could not lot into the mail server talktalk.net.
    I have tried several times and keep getting the same message.
    Any ideas

    Accessing your emails from any computer connected to the Internet or from a Smart phone should be straightforward.
    For help on how to set up your e-mail on some of the most common software applications and devices, see How do I set up my TalkTalk email?
    If your software application or device isn't listed, all you need to connect to your TalkTalk e-mail mailbox are the TalkTalk e-mail settings. Make sure you use the right email settings for your specific email address.
    TalkTalk email addresses only
    Login / Username
    [email protected]
    [email protected]
    Incoming mail server
    mail.talktalk.net
    mail.talktalk.net
    Incoming Port
    110
    143
    Outgoing mail server
    smtp.talktalk.net
    smtp.talktalk.net
    Outgoing Port
    587
    587
    Outgoing SSL
    Yes
    Yes
    Outgoing Authentication
    Yes
    Yes

  • Can i use exchange 2010 in the mail(4.5)?

    Can i use exchange 2010 in the mail(4.5)?
    i can't use exchange 2010 in the mail (4.5),but i can use normally in the mail (3.6)。why?

    Of course you can use your iPhone in the rain but since devices are not waterproof, nobody in their right mind would recommend it. The risk is yours and an out-of-warranty repair might cost more than a few bucks.
    I highly recommend you read this article: http://support.apple.com/kb/ht3302
    And some kind of a protective casing if you insist on using the device in the rain.
    Live long and prosper!

  • How to use DESNAME and DISTRIBUTE to mail

    Hello,
    I am using Oracle Reports 10g. I have a report (clients' invoices) which repeats on INVOICE_NO. (setup to burst).
    I go to Property Inspector >> Distribution:
    DISTRIBUTION ID: EMAIL_ADDRESS
    DESNAME: EMAIL_ADDRESS (this is the column in the database table which holds the emails of each clients, to whom the report is going to be sent; each client receives his/hers invoice)
    DESFORMAT: PDF
    DESTYPE: MAIL
    COPIES: 1
    I save, and then File >> Distribute, (asks me that is going to be send to multiple destinations) says: Distribution completed succesfully. BUT nothing happens (no emails).
    Questions:
    1. How should i write in order to distribute to each clients' email?
    2. Where could i see the activity logs of the application (are there any), where i could investigate what is going on in the backend?
    Thank you,
    Michael.

    Hi there guys,
    I have tracked down my mistaked.
    in the object navigator, i clicked on main, then in the body i have spotted down the R_ section, clicked on it, and then in the report design i have deleted. Then it worked like a charm.
    I have filled in the distribution box like this: &<subscriber_name>, and then i got each PDF bursted and distributed in each mail. That's great!!!
    The question is now:
    1. How can i configure all the details that will be displayed in the email? (like sender, subject, body etc.) Using the distribution box it gives me no alternative, in the distribution XML i can do this by editting all the details.
    2. How can i log all the responses that i get from each e-mail address to which has an email been sent. For example, one e-mail address is not valid anymore, i want to grep the answer that the mail server receives and in the end, to make a report ( out of 100% - 20% failed, 80% succesfully delivered). How can i accomplish this task?
    Thank you,
    Michael.

  • How to send HTML Format Mail using Java Mail in oracle 9i Forms

    Dear All
    could you please tell me how to send HTML Format Mail using Java Mail in oracle 9i Forms and how to implement the java mail ?
    if it is possible, could you please send me the sample code? please very urgent
    Thanks
    P.Sivaraman

    Hello,
    <p>Here is a Form sample.</p>
    Francois

  • When I forward mail (using iPhone) to other, the recipient replied the picture become a link.

    When I forward mail (using iPhone) to other, the recipient replied the picture insides mail content become a link. Of course, they can click on the link and it goes to the picture. Please help.

    From the menu bar select '''View-Headers-Normal'''

  • Mail using java

    Hello Every one i just want send a simple mail using java or jsp.. so can any one help me ?

    Please note that this forum is focused on the use and support of the Oracle Enterprise Pack for Eclipse. There are better, more appropriate forums for Java technologies such as Java Mail. You should do a search for the Java Mail API. You will find the FAQ for the Java Mail API at http://www.oracle.com/technetwork/java/faq-135477.html and there will be many results with examples for sending mail. One such article is http://www.java-tips.org/other-api-tips/javamail/sending-e-mail-using-javamail-api.html

  • Hi, I have private emails in IPAD2, i have chaged the incoming mail server name and saved the change.

    Hi, I have private emails in IPAD2, i have chaged the incoming mail server name and saved the change.
    but, when I back to read my old emails in inbox it's gone away, I have backed to setting and return the previous
    incoming mail name, but also I did't get the old emails. where I can find the old emails in my IPAD2 ?

    It is only the link to your emails which are 'stored' on your iPad. You will have to enter all proper email addresses to get the message associated with them, which, in practice,  means multiple accounts. If all still does not work try a Reset [Hold the Home and Sleep/Wake buttons down together for 10 seconds or so (until the Apple logo appears) and then release].

Maybe you are looking for

  • Is there a way to make Wake on Demand work?

    I have checked the AKB and I have a Mac Pro that is all set to wake on demand, the only issues is that I have an older Airport Express (b/g not n). Does anyone know of a work around to get this Airport to work with Wake on Demand, or am I out of luck

  • Syclo Work Manager 6.0

    Good afternoon, us are actually implementing WM 6 according to the guide, but when we want to upload a file that is not sent to ERP. We should check?. We already checked the values ​​of BDS (Business Document Service) / GOS (Generic Object Services),

  • Poor image quality when played from dvd just burned

    I exported a FCP file from FCP using Compressor using several variations: uncompressed, compressed MPEG2 etc... brought the file into DVDSP and burned it to a DVD. when i play it from the dvd on my computer monitor it has these terrible lines and the

  • Photos not uploaded to Revel from PSE12

    So far I had no problems uploading Photos to Revel. I have a free account and the Revel Status says that I can still upload 49 photos. My Data: My PSE12 is on WIN7. I uploaded my complete PSE12 catalogue. Problem: Last week I added 30 photos. They st

  • I lost the url line in my browser. Don't know what I did. How do i get it back?

    I was trying to get rid of the lines at the top of my firefox screen, and I guess I deleted one I shouldn't have. Now, there is no url line for me to type in; no gold star at the end of the line, and no "down arrow" to bring up my recent address sele