Compose Email Draft

Stable Version 1.0.0 (OutSystems 11)
Published on 22 Feb (4 weeks ago) by 
Created on 22 Feb (4 weeks ago)
The plugin provides access to the standard interface that manages the editing and sending an email message even in situations where the user does not have network access, such as in airplane mode.
Read More

Sample Compose Email Draft:


You can use this view controller to display a standard email view inside your application and populate the fields of that view with initial values, such as the subject, email recipients, body text, and attachments. The user can edit the initial contents you specify and choose to send the email or cancel the operation.

Supported platforms

  • Android
  • iOS
  • Windows
  • Browser
  • OSX


All properties are optional. After opening the draft, the user may have the possibilities to edit the draft from the UI. Of course, it’s also possible to open an empty draft.

  • Open: It accepts an options object and a callback. open(options, callback)
  • Options:·
    • fromString, // sending email account (iOS only)
    • to: Array, // email addresses for TO field
    • cc: Array, // email addresses for CC field
    • bcc: Array, // email addresses for BCC field
    • attachments: Array, // file paths or base64 data streams
    • subject: String, // subject of the email
    • body: String, // email body
    • isHtml: Boolean  // indicates if the body is HTML or plain text (primarily iOS)

It's possible to specify the email client. If the phone isn´t able to handle the specified scheme it will fallback to the system default. For a specific mail client, just pass its URI scheme on iOS or the package name or alias on Android as the first parameter:

  • app: String,  //  “Gmail, mailto, etc..”


  • Only the built-in email app for iOS does support HTML and CSS. Some Android clients support rich formatted text. Use isHtml with caution! It's disabled by default.
  • This interface does not guarantee immediate delivery of the corresponding email message.
  • The user may cancel the creation of the message, and if the user does choose to send the message, the message is only queued in the Mail application outbox.
  • This interface does not provide a way to verify whether emails were actually sent.

Thanks, @Katzer for CordovaPlugin Git Repository

 Suggestions are most welcome !!

Reviews (0)
Applications, Mobile Plugins, Components, Samples & How-tos, Developer Tools
Support Options
This component is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from Viraj Kataria who created this component.
See all 1 dependencies
Component Consumers
See all 1 consumers
Weekly Downloads 
Related Components
Silk UI Web
OutSystems R&D
A fully responsive and beautiful UI framework that works within the OutSystems Platform. Build amazing looking applications, in a fraction of the time, which work perfectly across devices. Learn how to start using Silk UI and see the examples at . Obtain assistance on using Silk UI in our forums .
Architecture Team
A tool to discover and measure your architecture and understand how to improve
OutSystems Now
OutSystems R&D
OutSystems Now brings your OutSystems experience to any device.
More from Viraj Kataria
Rapid Strings
Customize & JS Strings Manipulation Function Other then Outsystems for Easy to implement and makes coding more lowcode
Android iOS Shared User Preferences
An interface to the user’s defaults database, where you store key-value pairs persistently across launches of your app. - Supports both Android [ Shared Preferences ] & iOS [ User Preferences ]
iRoot - Android iOS Jailbreak/Root Detection
Cordova Jailbreak/Root Detection