"create an email object in java and save it to file" Code Answer

5

you create a message object the same way you would create one for sending, but instead of sending it you write it to a file. you don't need an email server. there's lots of examples of creating messages in the demo programs included with the javamail download, and in the javamail faq. see the message.writeto method to write the message to a file (message is a part, and writeto is on part).

By aanshu on August 26 2022

Answers related to “create an email object in java and save it to file”

Only authorized users can answer the Search term. Please sign in first, or register a free account.