EPOC   SDK Home Glossary Indexes Previous Next Up

Send As interface

EPOC Messaging provides a simple to use interface that allows applications to package data into outgoing messages. The Send As API, through its main class CSendAs, provides client applications with the means to:

An application using Send As determines first that an appropriate MTM is available by setting the required capabilities, such as whether attachments are supported or whether the message body is restricted to plain text, and then obtaining the names of the available MTMs. Alternatively, if the caller knows which MTM to use, it can be set directly using the MTM UID.

If there is more than one service that can be used by the MTM, for example, more than one SMTP account, then the caller can chose which one to use. If the caller does not set a service, then the default service is used.

Example

For example, try modifying the Message Client Example to:

The example also gives examples of the simple use of the Client-side MTM and User Interface MTM interfaces. A good exercise would be to extend this use to wait for particular incoming messages, extract their data, and display it in a suitable format to the user.

EPOC       SDK Home Glossary Indexes Previous Next Up