O'Reilly logo

Ionic Cookbook by Hoc Phan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Composing an email with an attachment from an app

Your use case may include the ability to let users compose their own email with populated fields. For example, after users perform some specific actions, the app automatically fills in the email receiver, subject, and body to have users send it off. This functionality makes it easy for users so that they don't have to manually compose the email. Many apps use this technique for the tell a friend feature.

The code example in this section will use Cordova's Email Composer plugin so that your Ionic app has a standard interface to communicate with the native device feature. You will understand how to attach files such as images to user emails. The image could be a local file in the app filesystem or ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required