Language:

The Free and Open Productivity Suite
Apache OpenOffice 4.1.4 released

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous


:: com :: sun :: star :: mail ::

unpublished interface XSmtpService
Base Interfaces
XSmtpServiceXMailService

XMailService
(referenced interface's summary:)
Represents a mail server abstraction.
Usage Restrictions
not published
Description
Represents a SMTP service abstraction.
Since
OOo 2.0
See also
XMailService, XMailMessage

Methods' Summary
sendMailMessage Send a mail message to its recipients.  
Methods' Details
sendMailMessage
void
sendMailMessage( [in] XMailMessage  xMailMessage )
raises( ::com::sun::star::io::NotConnectedException,
SendMailMessageFailedException,
MailException,
::com::sun::star::datatransfer::UnsupportedFlavorException );

Description
Send a mail message to its recipients.
Parameter xMailMessage
[in] the mail message to be sent.
Throws
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.
See also
XMailMessage, ::com::sun::star::io::NotConnectedException, SendMailMessageFailedException, MailException, ::com::sun::star::datatransfer::UnsupportedFlavorException
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache and the Apache feather logo are trademarks of The Apache Software Foundation. OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.