Home Javamail Introduction of Java Mail
Questions:Ask|Latest


 
 

Share on Google+Share on Google+

Introduction of Java Mail

Advertisement
In this section we will describe Java Mail examples to be used for mail processing.

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.

Advertisements

Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: October 10, 2006

Ask Questions?    Discuss: Introduction of Java Mail  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
Rinkal
April 24, 2011
java

how i will start the project on javamail using above instruction
Rinkal
April 23, 2011
java mailapi

how i will start to make the mail system.first what i doing?
2
September 8, 2011
Send Mail

Hi, Exception in thread "main" javax.mail.SendFailedException: Sending failed; nested exception is: class javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect at javax.mail.Transport.send0(Transport.java:218) at javax.mail.Transport.send(Transport.java:80) at com.pe.notariach.SendMail.main(SendMail.java:27) que hago??
mohanraj
October 19, 2011
unread

how to list unreaded mail in gmail
Michael
November 22, 2011
Voting Button

Hi everybody, do you also know how to create mails with voting buttons and also to how to react receiving the voting results? KR, Michael.
renila k r
January 23, 2012
java mail project

i want to java mail project codes and its applications
renila k r
January 23, 2012
java mail project

i want to java mail project code and its applications
sandeep
July 6, 2012
java mail

thank u for providing the java mail introduction ,,,,,
Naveen
September 15, 2012
Hi,Can you send the code for all 25 topics..

I am a student...i am doing the project on java.i am learning all topics.so please send the codeof all 25 articles to my mail ..Thank you
DMCA.com