我们可以从静态html页面发送电子邮件吗? [英] Can we send email from static html page?

查看:155
本文介绍了我们可以从静态html页面发送电子邮件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个html静态查询表单,我想在提交操作中编写代码,当我们点击提交时,一个电子邮件将发送到我的帐户。

I have created one html static inquiry form and i want to write a code on submit action in which when we click on submit, One email will send on my account.

如何用静态html格式写代码以静态html页面发送邮件?

How can i write a code in static html form to send email in static html page?

推荐答案

只有HTTP(S) URI可以安全地用于表单操作。您需要服务器端进程才能发送电子邮件(即使是外部托管的第三方服务)。这样做纯粹是客户端的尝试是太不可靠使用

Only HTTP(S) URIs are safe for use in form actions. You need a server side process to send email (even if it is an externally hosted, third party service). Attempts to do this purely client side are too unreliable to use.

这篇关于我们可以从静态html页面发送电子邮件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆