katzer / cordova-plugin-email-composer

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

feedback some issues for you #16

Closed bau720123 closed 10 years ago

bau720123 commented 10 years ago

I am using phonegap build 3.3 with your latest plugin 0.7.1

My device Android 4.03, iOS 7.0.6,Windows phone 8 (Nokia Lumia 520)

Q1 When I use this method

window.plugin.email.isServiceAvailable(
    function (isAvailable) {
        alert(isAvailable ? 'Service is available' : 'Service NOT available');
    }
);

Android:Service is available (good,I use a Gmail account) iOS:Service is available (good,I use a Gmail account) Windows phone:Service is available (so strange,I have no account in my device)

Q2 When I use this method

window.plugin.email.open({
    to:      ['max.mustermann@appplant.de'],
    cc:      ['erika.mustermann@appplant.de'],
    bcc:     ['john.doe@appplant.com', 'jane.doe@appplant.com'],
    attachments: ['......'],
    subject: 'Hello World!',
    body:    '<h3>TEST</h3><h2>TEST</h2><h1>TEST</h1>',
    isHtml:  true
});

Android:almost work (In addition "cc" and "bcc",I am using Gmail app to send a mail) iOS:all work (In addition "attachments") https://github.com/katzer/cordova-plugin-email-composer/issues/14

katzer commented 10 years ago

Windows phone:Service is available (so strange,I have no account in my device)

It returns always true since I don't know a away to check wether an account is configured or not.

Whats the question for Q2?

bau720123 commented 10 years ago

Hi @katzer Let me explain The Q2 means

Q1 so you mean is no mater I use Android or iOS or Winphone and no mater I hava a email account or not it will show "Service is available" (if I install this plugin correctly)? it will show "Service NOT available" (if I install this plugin not correctly or ever never installed)?

Q2-1 in Android,can't see the "cc" and "bcc" content http://www.littlebau.com/social2/cc1.png

but in iOS,can see the "cc" and "bcc" content http://www.littlebau.com/social2/cc2.png

Q2-2 I have the same problem in IOS https://github.com/katzer/cordova-plugin-email-composer/issues/14

katzer commented 10 years ago

Hello @bau720123

Q1 Only the WP8 version cannot detect if the service is available or not.

Q2 I think you have to change the mail settings to show the (b)cc fields. I have to click on "add bcc/cc" to see them.

Q2-2 Have not found time yet...

bau720123 commented 10 years ago

Hello @katzer The Q2 Extend because of in iOS it will automatically use the "cc" and "bcc" value from the code that I Definition so you mean is... in Android,it could be manally use (b)cc fields right ? (I check out my Gmail APP setting,but there is no option or any setting can let the (b)cc fields automatically to use)

katzer commented 10 years ago

I mean the field are not shown even they are not empty. Thats the case with the default email app (emulator). If you send an email, the (b)cc receivers receive that mail?

bau720123 commented 10 years ago

thanks @katzer I finally know what you mean in the gmail app,the cc and bcc hidden by default it must click the "Menu" button and click the "insert cc/bcc" option and the "cc" and "bcc" field will show up and have a value that I Definition tks~