Emailcomposer does not work.
When I click the button that calls the function the only thing that is the log console. What am I doing wrong ?
can you help me ?
Thank you
import { EmailComposer } from '@ionic-native/email-composer';
constructor(private emailComposer: EmailComposer) {
}
InviaMail() {
console.log("click invio")
this.emailComposer.isAvailable().then(() => {
let email = {
to: '',
cc: '',
bcc: [''],
subject: 'Cordova Icons',
body: 'How are you? Nice greetings from Leipzig',
isHtml: false
};
this.emailComposer.open(email);
}, (err) => {
console.log(err);
});
}