简体   繁体   English

Chrome Web App和发送电子邮件

[英]Chrome Web App and Sending Email

I want to send an email to a user who inputs their email address in the chrome web app. 我想向用户发送电子邮件,该用户在chrome网络应用中输入其电子邮件地址。 How can I send the email? 如何发送电子邮件? In chrome web apps the mailto: function does not work. 在Chrome Web应用程序中,mailto:功能不起作用。

Based on this SO question. 基于这个SO问题。 You cant use javascript to send your email. 您不能使用javascript发送电子邮件。 However you can open the user's mail client. 但是,您可以打开用户的邮件客户端。

window.open('mailto:test@example.com');

window.open('mailto:test@example.com?subject=subject&body=body');

In chrome web apps the mailto: function does not work because I think it is not configured in the browser settings. 在Chrome Web应用程序中,mailto:功能不起作用,因为我认为未在浏览器设置中对其进行配置。

Try to configure it in chrome settings->handlers, or Chrome Settings->Content Settings->Manage Handlers 尝试在chrome settings->handlers, or Chrome Settings->Content Settings->Manage Handlers

我将有一个简单的Web服务,您的应用程序将通过XHR连接到该服务,服务器将发送电子邮件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM