Hello,
I'm working with the JavaMail API. I'd like to send some messages
through a socket.
However, it turns out that com.sun.mail.pop3.POP3Message and
javax.mail.internet.MimeMessage are not Serializable.
Well, if they're not Serializable, then if there was some way to
send the parsed message as, let's say, XML, that would be just as good.
However, there isn't any built-in method to convert a parsed message
to XML, so far as I can see.
I can, of course, write my own method to call the various getters
to collect the pieces of the message and then format an XML message.
But I'd rather not reinvent the wheel here -- surely others have run
into
this same problem? Although after Googling I haven't found any
solutions.
I guess I can send the original message, and parse it again on the
recipient's end, but I'd rather just preserve the parsed format.
Thanks for any insights.
Robert Dodier
Roedy Green - 15 Mar 2006 22:42 GMT
>I'm working with the JavaMail API. I'd like to send some messages
>through a socket.
>However, it turns out that com.sun.mail.pop3.POP3Message and
>javax.mail.internet.MimeMessage are not Serializable.
send the completed email. Put a mail server at the other end.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.