![]() You can pick-and-choose to suit your application’s needs. Another jar file contains only the API, and Oracle broke down the implementations for each transport into its own jar file. ![]() The simplest thing to do is to use mail.jar, since it contains the whole API and several transport implementations. There are a few jar files in the distribution. The easiest way to send email with Java is by using a library provided by Oracle. In this article, I show the basics of using JavaMail, how to send HTML messages, and how to use MIME to create a multipart message that encloses the images, either as attachments, or as part of the message body. You certainly have received plenty of email that contains images, but you may not know programmatically how to send such a thing from your Java code. Many applications need to send e-mail messages, for everything from server status updates to marketing messages, and some of these include photos, charts, or other images.
0 Comments
Leave a Reply. |