Compose Email Draft

Stable Version 1.0.0 (OutSystems 11)
Published on 22 Feb by 
Created on 22 Feb
Details
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:

https://www.outsystems.com/forge/Component_Overview.aspx?ProjectId=5359


Description

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


Highlights

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..”


Note:

  • 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
 https://github.com/katzer/cordova-plugin-email-composer

 Suggestions are most welcome !!

Reviews (0)
Category
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.
Dependencies
See all 1 dependencies
Requirements
Platform:
11.0.0.200
Database:
All
Stack:
.NET
Component Consumers
See all 1 consumers
Weekly Downloads