Best reference for these sorts of questions are the JavaMail API, on
Javasoft's web site at... http://java.sun.com/products/javamail/

To directly answer your question, on a MimeMessage object, you can call
writeTo(OutputStream out).  This should dump the MimeMessage in text
format (including headers et al, exactly as specified by the RFCs).  To
dump just the body, you'll have to check the spec.

Serge Knystautas
Loki Technologies
http://www.lokitech.com/

danh wrote:
> 
> I am using James as a mail to sms gateway very succesfully, the only problem
> I have is more of a lack of Java knowledge.  When I use the sms_client
> software to send the message the message is received as a
> javax.mail.internet.MimeMessage type!  How do I extract the MimeMessage as
> String and send that?
> 
> Sorry to ask such a dunderhead question.
> 
> Thanks
> 
> Dan Hennessey


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/>
Problems?:           [EMAIL PROTECTED]

Reply via email to