[an error occurred while processing this directive]

Introduction of Java Mail

                         

In this section we will describe Java Mail examples to be used for mail processing. These different examples cover almost every process of Electronic Mail for example- composing, reading, sending text mails and also with attached files.

  1. Introduction to Java Mail API
    The Java Mail API allows the developers to add mailing functionalities to their java applications. In this section we will introduce you with the Java Mail API.
       
  2. How does Email works
    Each Internet domain has email Server, when a user sends an Email…
       
  3. Apache Mail server (James)
    In this section we will explain you about the James mail server. James is a complete and portable enterprise mail server and a mail application platform. Latest version is James 2.3.1.
       
  4. Technical description of Java Mail API
    This section introduces you with the core concepts of Java Mail API. You must understand the Java Mail API before actually delving into the development of mail processing applications.
       
  5. Sending message using Java Mail
    This Example shows you how to send a message using javamail api. A client create new message by using Message subclass. It sets attributes like recipient address and the subject, and inserts the content into the Message object, and inserts the content into the Message object
       
  6. Reading message using Java Mail
    This Example shows you how to read message using javamail api. All messages are stored in Folder objects. A folder can contain folders or messages or both. The Folder class declares methods that fetch, append, copy and delete messages. These are some of the methods used in the program.
       
  7. Send multipart mail using java mail
    This Example shows you how to send multipart mail using java mail. Multipart is like a container that holds one or more body parts. When u send a multipart mail firstly create a Multipart class object and then create BodyPart class object, set text in BodyPart class object and add all BodyPart class object in Multipart class object and send the message.
       
  8. Read Multipart mail using Java Mail
    This Example shows you how to read a multipart message using javamail api. When we read a multipart mail firstly create a Multipart class object.
       
  9. Sending Email with Attachment
    This Example shows you how to send a Attachment in the message using java mail api. A client create new message by using Message subclass. It sets attributes like recipient address and the subject, and inserts the content into the Message object, and inserts the content into the Message object, and add attachment in the content and Finally, it sends the Message by invoking the Transport.send() method.
       
  10. Read attachment message using Java Mail
    This Example shows you how to read a Attachment message using javamail api. Java Mail API provides classes to send multiple Mime body part with one Mime Message. MulipltMimeBody parts can be text, file or image.
       
  11. Replying to messages using Java mail
    This Example shows you how reply to message using javamail api. The Message class have a reply() method to configure a new Message with the proper recipient and subject, adding "Re: " if not already there. This does not add any content to the message, reply() method have a boolean parameter indicating whether to reply to only the sender (false) or reply to all (true).
       
  12. Forwarding Messages using Java Mail
    This Example shows you how to read a multipart message using javamail api. When we read a multipart mail firstly create a Multipart class object.
       
  13. How to show all header information of message using Java Mail api
    This Example shows you how to show all header of any message using javamail api. All messages are stored in Folder objects. folders can contain folders or messages. The Folder class declares methods that fetch, append, copy and delete messages.
       
  14. Deleting messages example
    This Example shows you how delete a message. If you want to delete any message then set the message flag delete. There are different types of flags, some system-defined and some user-defined.
       
  15. Send HTML Mail with images
    This Example shows you how to send a html message using javamail api. A client create new message by using Message subclass. It sets attributes like recipient address and the subject, and inserts the content into the Message object, and inserts the content into the Message object. Finally, it sends the Message by invoking the Transport.send() method.
       
  16. Java Mail Mail Authenticator Example
    This Example shows you how to use Authenticator using javamail api. Authenticator class object that knows how to obtain authentication for a network connection.
       
  17. Java Mail POP3Client Example
    This Example shows you how to POP3Client using javamail api. All messages are stored in Folder objects. folders can contain folders or messages. The Folder class declares methods that fetch, append, copy and delete messages. These are some of the methods used in the program.
       
  18. Java Mail SMTPClient Example
    This Example shows you how to create a SMTP Client using javamail api. A client create new message by using Message subclass. It sets attributes like recipient address and the subject, and inserts the contentinto the Message object, and inserts the content into the Message object.
       
  19. Java Mail AttributeClient Example
    This Example shows you how to show attribute of any message using javamail api. All messages are stored in Folder objects. Folders can contain folders or messages. The Folder class declares methods that fetch, append, copy and delete messages.
       
  20. List Information about folder
    This section introduces you with the core concepts of Java Mail API. You must understand the Java Mail API before actually delving into the development of mail processing applications.
       
  21. How to show header of any message using Java Mail api
    This Example shows you how to show header of any message using javamail api. All messages are stored in Folder objects. folders can contain folders or messages. The Folder class declares methods that fetch, append, copy and delete messages.
       
  22. Handle EML(Electronic mail) file with Java Mail
    This Example shows you how to read any eml(Electronic mail) file using javamail api. eml is a simple email, all eml are stored in Folder objects. folders can contain folders or messages. The Folder class declares methods that fetch, append, copy and delete messages.
       
  23. Java Mail Assimilator Example
    This Example shows you how to send a message using javamail api. A client creates new message by using Message subclass. It sets attributes like recipient address and the subject, and inserts the contentinto the Message object, and inserts the content into the Message object. Finally, it sends the Message by invoking the Transport.send() method.
                 
  24. Send Mail using James Server
    In this example we create a send mail class which is used to send the mail in the mail box of James mail server and insert the message in database table.
               
  25. Read Mail using James Server
    In this example we read the mail from mail box with send date, from, subject and message.

                         

 

[an error occurred while processing this directive]