Write the headers and content of the MIME object to stream.
a #GMimeFormatOptions or null
stream
the number of bytes written or %-1 on fail.
Write the headers and content of the MIME object to stream.