Overview | Module | Use | Devguide | Index

Constructors' Summary | Constructors' Details

:: com :: sun :: star :: mail ::
unpublished | service MailMessage |
Supported Interface XMailMessage
Usage Restrictions not published Since OOo 2.0

Constructors' Summary
create | Constructs an instance of a mail message.
createWithAttachment | Constructs an instance of a mail message.

Constructors' Details
create
create( | [in] string | sTo,
| [in] string | sFrom,
| [in] string | sSubject,
| [in] ::com::sun::star::datatransfer::XTransferable | xBody );
Description Constructs an instance of a mail message. Parameter sTo [in] the e-mail address of the recipient. The e-mail address has to conform to RFC 822. Parameter sFrom [in] the e-mail address of the sender of this mail message. The e-mail address has to conform to RFC 822. Parameter sSubject [in] the subject of the mail message. Parameter xBody [in] the body of the mail message. It is expected that the transferable delivers the data as a string. Although a transferable may support multiple data flavors only the first data flavor supplied will be used to retrieve the data and it is expected that the data will be provided as a string. See also XMailMessage, ::com::sun::star::datatransfer::XTransferable
createWithAttachment
createWithAttachment( | [in] string | sTo,
| [in] string | sFrom,
| [in] string | sSubject,
| [in] ::com::sun::star::datatransfer::XTransferable | xBody,
| [in] MailAttachment | aMailAttachment );
Description Constructs an instance of a mail message. Parameter sTo [in] the e-mail address of the recipient. The e-mail address has to conform to RFC 822. Parameter sFrom [in] the e-mail address of the sender of this mail message. The e-mail address has to conform to RFC 822. Parameter sSubject [in] the subject of the mail message. Parameter xBody [in] the body of the mail message. It is expected that the transferable delivers the data as a string. Although a transferable may support multiple data flavors only the first data flavor supplied will be used to retrieve the data and it is expected that the data will be provided as a string. Parameter aMailAttachment [in] specifies an attachment which should be send with this mail message. See also XMailMessage, ::com::sun::star::datatransfer::XTransferable, MailAttachment

Top of Page

Copyright © 2000, 2013 LibreOffice contributors and/or their affiliates. All rights reserved.

LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.

The Document Foundation acknowledges all community members, please find more info at our website.

Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.