Accessing images from the email functionality


#1

I have an ionic app built which is calling the email functionality. I have successfully created an array that pulls in the urls to the images when the email box is called. However, I can’t seem to access the image files from the dialog box. All the explanations on the plugins page have failed (https://github.com/katzer/cordova-plugin-email-composer). Any ideas for how I access the images that are inside my www file from the iOS email composer?

Thanks!


#2

This worked for me. Was already using the plugin and just added the attachment to test.

window.plugin.email.open({
    to: [''],
    attachments: ['www://img/form.png'],
    subject: 'Tooling Purchase Request',
    body: body,
    isHtml: true
});

#3

Hi, thanks for your answer. However this still doesn’t work for me on iOS. Not exactly sure why, as the rest of the plugin does seem to work. Any ideas?