简体   繁体   English

在mailto js中禁用邮件正文

[英]Make the mail body disabled in mailto js

I'm building a shooping site where the customer is ablee to contact the seller with emails.我正在建立一个购物网站,客户可以通过电子邮件与卖家联系。

I dont want to use backend so I just use Mailto.我不想使用后端,所以我只使用 Mailto。 now, I have 2 questions:现在,我有两个问题:

1) Can I open the client mail with disabled field? 1)我可以打开禁用字段的客户端邮件吗? So that he wont be able to change the "To" field (for example)?这样他就无法更改“收件人”字段(例如)? I dont want to use "readonly" attribute because there are also fields that the user himself need to fill.我不想使用“只读”属性,因为还有用户自己需要填写的字段。

2) Can I send the mail from my code without the customer press "send"? 2) 我可以在没有客户按“发送”的情况下从我的代码发送邮件吗?

Thank you guys!感谢你们!

Can I open the client mail with disabled field?我可以打开禁用字段的客户端邮件吗?

No.不。

Can I send the mail from my code without the customer press "send"?我可以在没有客户按“发送”的情况下从我的代码发送邮件吗?

No.不。


If you want to do that, then use server-side code to send the email.如果您想这样做,请使用服务器端代码发送 email。 You might want to use a backend, but you need one.您可能想使用后端,但您需要一个。 It can be one you run on your websites server or a third-party service.它可以是您在网站服务器上运行的,也可以是第三方服务。

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

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