By submitting your information, you agree that jguru.com may send you jGuru offers via email, phone and text message, as well as email offers about other products and services that jGuru believes may be of interest to you. jGuru will process your information in accordance with the Quinstreet Privacy Policy.

JavaMail Section Index | Page 23

The basic process of deleting a message is to call setFlag() on the message and set the Flags.Flag.DELETED flag to true.
message.setFlag(Flags.Flag.DELETED, true);
Then, when you close the folde...more

After getting a POP3 provider for JavaMail (quite possibly from Sun at http://java.sun.com/products/javamail/pop3.html,
getting a list of messages involves the following steps:
Creating a session...more

Sun's Java runtime environments (as well as the ones included with Netscape Communicator and Internet Explorer) include the SmtpClient class. As part of the sun.net package, it is not a standard J...more

Assuming you have access to an SMTP server that will accept your request, you can either open up a socket connection to port 25 and send the raw SMTP commands, or use the non-standard sun.net.smtp...more

RFC 2821 (http://www.faqs.org/rfcs/rfc2821.html) defines the SMTP protocol. To send a message you would normally open up port 25 on your mail server and send the following information:
HELO sendi...more

The reference JavaMail implementation is available from Sun from http://java.sun.com/products/javamail/. You also need the JavaBeans Activation Framework extension from http://java.sun.com/beans/g...more

The JavaMAIL API is the standard mechanism for sending email. See the JavaMail FAQ for how to use it. You can place j2ee.jar (or mail.jar and activation.jar) under web-inf/lib folder in tomcat3.2....more