Home > Software engineering >  Angular, on button press launch email app
Angular, on button press launch email app

Time:06-29

Suppose I send a verification code on email and I have a button "check mail" On pressing that I want to just open the email app on the phone directly

edit: trying cordova-app-alunch plugin for it, if you have any suggestions

CodePudding user response:

this might help

you can also open new mail and give pre selected info

let email = {
      to: '[email protected]',
      cc: '[email protected]',
      bcc: ['[email protected]', '[email protected]'],
      attachments: [
        'file://img/logo.png',
        'res://icon.png',
        'base64:icon.png//iVBORw0KGgoAAAANSUhEUg...',
        'file://README.pdf'
      ],
      subject: 'Cordova Icons',
      body: 'How are you? Nice greetings from Leipzig',
      isHtml: true
    }

with following you can open and attach the following with one press of a button

// Send a text message using default options
this.emailComposer.open(email);

CodePudding user response:

You can use send mail is an node package.

  • Related