katzer / cordova-plugin-email-composer

Edit and send email messages
Apache License 2.0
344 stars 333 forks source link

Open() is not working for windows 10 cordova app #294

Closed gharini11 closed 2 years ago

gharini11 commented 6 years ago

Hi, I have a universal cordova app for iOS and Windows 10 UWP. I have the following code when email button is clicked -

        $cordovaEmailComposer.isAvailable().then(function () {
            var email = {
                to: '',
                cc: '',
                bcc: [],
                attachments: emailImageArray,
                subject: subject,
                body: emailBody,
                isHtml: true
            };

            $cordovaEmailComposer.open(email).then(null, function () {
                console.log("Email ready cancel", emailBody);
            });
        }, function () {
            console.log("Email not ready");
        });
    }

It works fine for iOS but for Windows it does not open the draft or throw any error. plugin version for Windows app - 0.8.7 cordova-windows - 4.3.0 cordova - 6.0.0

Please let me know how to fix this one.

Thanks!

gharini11 commented 6 years ago

@katzer does it work for UWP Windows 10 apps?

QuickCRM commented 5 years ago

Hi, On UWP Windows 10 apps, the mail opens, but attachment(s) are not included. Our attachments are in ms-appdata:///temp/temp.

jfoclpf commented 2 years ago

@QuickCRM did you eventually solve this problem?

jfoclpf commented 2 years ago

duplicate of #252