java html 邮件 js,使用HTML表单中的javascript发送电子邮件

本文讨论了尝试通过JavaScript在浏览器中直接发送邮件的潜在问题和风险。由于安全原因,JavaScript无法访问操作系统,因此无法直接发送邮件。通常建议使用PHP或其他服务器端脚本。此外,还提醒开发者应考虑电子邮件的收件人、发件人以及用户交互方式,避免给用户带来混淆。文章建议重新审视应用设计和需求。
摘要由CSDN通过智能技术生成

Hi everyone,

I am creating a HTML form and want to send email through this form. I don't want to use PHP Script to send email. I need any java script ya jquery code to send email through this html form.

please help me. please send me any link or solution

解决方案

Using JavaScript to send email is the worst idea you ever had!

Remember that JavaScript runs INSIDE the client's browser and for security reasons it has no access the the OS!

So the only way to even try to send email is using the mailto protocol, and that assumes client using some kind of desktop mail client. That can be a false assumption that will lead the user to total confusion...

More than that!

To who do you want to send that email? Your current user?! He is on your website - show him a message!

And who is the sender? The current user? Or your system?

I advise you to review your application design and needs!!!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值