Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个包含以下字段的 html 表单:
和一个提交按钮来提交表单。
一旦用户成功提交表单,我想收到一封电子邮件。我该怎么做呢?
(对不起我的英语不好)
您不能通过 HTML 或 javascript 自动执行此操作(除非您不介意提示用户通过mailto:链接发送电子邮件)。
mailto:
您需要处理一些服务器端编程,例如 PHP 或 .NET。大多数(如果不是全部)服务器端编程语言都有自己的邮件库。
发邮件只能用服务器端技术,不能用html/javascript实现 请写下你用的是什么服务器技术,我会更新答案