public void writeTo(java.io.OutputStream os,
                    java.lang.String[] ignoreList)
             throws java.io.IOException,
                    MessagingException
Output the message as an RFC 822 format stream, without specified headers. If the saved flag is not set, the saveChanges method is called. If the modified flag is not set and the content array is not null, the content array is written directly, after writing the appropriate message headers.
Throws:
MessagingException -  
java.io.IOException - if an error occurs writing to the stream or if an error is generated by the javax.activation layer.
See Also: 
DataHandler.writeTo(java.io.OutputStream)