Thanks, you solved my problem! I was using getSender() instead of getFrom(),
I should have read the javadoc a bit closer...
I changed it to this which works fine:
InternetAddress address = null;
if (this.getFrom() != null) {
address = (InternetAddress) this.getFrom()[0];
} else if (this.getSender() != null) {
address = (InternetAddress) this.getSender();
}
*But I have one question: why does getFrom() return an array, can a
MimeMessage have more than one From header? I mean, an email can only be
sent from one address, right??
*
Cheers, Tomas
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.