com::sun::star::io::NotConnectedException
if no user is currently connected to the mail server.
Throws
com::sun::star::mail::SendMailMessageFailedException
if the message could not be sent because of invalid recipient
addresses. The e-mail addresses of recipients have to conform to
RFC 822.
Throws
com::sun::star::mail::MailException
is thrown on other errors that may happen during sending.
A possible reason may be for instance that a file attachment
specified in a mail message could not be found or accessed.
Throws
com::sun::star::datatransfer::UnsupportedFlavorException
is thrown when the body of the mail message is provided in an
unsupported mime content type or may be thrown if one of the file
attachments specifies an unspupported mime content type.