Quantcast
Channel: Java Programming Forum - Learn Java Programming - Apache POI
Viewing all articles
Browse latest Browse all 120

Reading Data from *.msg Files - Problem by receiving Email Address of "From"

$
0
0
Hello

i just wrote a small java programm which collects all data from a *.msg (Stored Email File) and writes it to a Excel sheet. Iam using Apache - Poi (might be version 3.15)

My problem right now is that:

Code:

public java.lang.String getDisplayFrom()
                                throws ChunkNotFoundException

Gets the display value of the "FROM" line of the outlook message This is not the actual address that was sent from but the formated display of the user name.

This function only returns the user name / nickname. But i would like to get the Email adress - any suggestions how to deal with it?

Btw: to receive the Email Adress of all recipients you can use getRecipientEmailAddress().

best regards
thanks in advance

Viewing all articles
Browse latest Browse all 120

Trending Articles