Skip to main content
Known Participant
July 9, 2008
Question

Using JavaMail to parse .eml email files

  • July 9, 2008
  • 1 reply
  • 3094 views
Has anyone tried this? Anyone have some code that attempts to parse emails and display the body of the email, for example? This looks fairly difficult and any code that I can reuse would be very helpful.
This topic has been closed for replies.

1 reply

Inspiring
July 12, 2008
It certainly can be done. The key part is having a good understanding of the javamail API.
http://java.sun.com/developer/onlineTraining/JavaMail/contents.html#GettingAttachments

You can find a few ColdFusion snippets in this thread
http://www.tek-tips.com/viewthread.cfm?qid=1446467&page=1

The rest is just a matter of translating the java code to ColdFusion.