[英]Sending email using mailto: won't fill subject field
Using the Window.open mailto: to send an email from my app. 使用Window.open mailto:从我的应用程序发送电子邮件。 It opens up the email software and fills in whoever is being emailed just fine, but I can't seem to fill in the subject field.
它打开了电子邮件软件,可以很好地填写任何人,但是我似乎无法填写主题字段。
methods: {
email: function(event) {
let mail =
"mailto:Test@gmail.com?" +
"&subject=" +
escape("This is my subject");
window.location.href = mail;
}
}
It should not have the & if it is the only parameter 如果它是唯一参数,则不应包含&
methods: {
email: function(event) {
let mail =
"mailto:Test@gmail.com?" +
"subject=" +
encodeURIComponent("This is my subject");
window.location.href = mail;
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.