dcsimg

How can I get the sender email of the received mail?

John Zukowski

The getFrom() of Message returns an array. You can't just call aMessage.getFrom().toString().