Writes the content of the attached item to the specified output stream in RFC-822 format
(EML format) if the attached item is a message.
Parameters:stream | the stream to write into. |
Throws:ExchangeServiceException | if any errors occur during the communication with Exchange. |
IOException | if errors occur when writing to the specified stream. |
Writes the content of the attached item to the specified file in RFC-822 format (EML format) if
the attached item is a message. If the specified file doesn't exist, it will be created.
Parameters:file | the file to write into. |
Throws:ExchangeServiceException | if any errors occur during the communication with Exchange. |
IOException | if errors occur when writing to the specified file. |