By which method we can delete a mail using JavaMail Api?

Options
- messages.setFlag(Flags.Flag.Remove,true);
- messages.setFlag(Flags.Flag.Remove,false);
- messages.setFlag(Flags.flag.Deleted,true);
- messages.setFlag(Flags.flag.Deleted,false);


CORRECT ANSWER : messages.setFlag(Flags.flag.Deleted,true);

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement