You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Jm Seigneur <Je...@cs.tcd.ie> on 2003/02/06 17:09:13 UTC
PB with MimeMultipart multipart = (MimeMultipart) message.getContent();
Hello,
I've seen in the archive that it is possible to get the MimeMultipart of
a new Mail like that:
MimeMultipart multipart = (MimeMultipart)
mail.getMessage().getContent();
When I send an email with some binary file attached, I get a
java.lang.ClassCastException: java.lang.String.
The reason I'd like to get the multipart is to discard the attachment.
My question is:
Why do I get this exception?
Thanks,
Jm
---------------------------------------------------------------------
To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org