向用户发送电子邮件

Send email to the user

我需要,当用户单击一个按钮时,发送包含报告中更多信息的电子邮件

我尝试使用 emailComposer,但我不想使用它。

let email = {
       to: 'max@mustermann.de',
       cc: 'erika@mustermann.de',
       bcc: ['john@doe.com', 'jane@doe.com'],
       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
     }

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

那个插件打开电子邮件应用程序,我只想自动发送电子邮件。

谢谢!

您不能只使用设备的用户电子邮件帐户发送电子邮件。

如果您想这样做,则必须使用 third-party 具有 API.

的电子邮件发送服务

MailGun 非常好,每月提供 10,000 封免费电子邮件,接下来的 10,000 封仅需 5 美元。

尽管有很多不同的服务,只需搜索 "transactional email provider",您就会找到这些类型的公司。