LibreOffice
LibreOffice 24.2 SDK API Reference
|
Represents a SMTP service abstraction. More...
Represents a SMTP service abstraction.
void sendMailMessage | ( | [in] XMailMessage | xMailMessage | ) | |
raises | ( | com::sun::star::io::NotConnectedException, | |||
com::sun::star::mail::SendMailMessageFailedException, | |||||
com::sun::star::mail::MailException, | |||||
com::sun::star::datatransfer::UnsupportedFlavorException | |||||
) |
Send a mail message to its recipients.
xMailMessage | [in] the mail message to be sent. |
com::sun::star::io::NotConnectedException | if no user is currently connected to the mail server. |
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. |
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. |
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 unsupported mime content type. |