如何使我的网站能够接收电子邮件.我需要特殊的CGI吗? [英] How do I make my website able to receive e-mails. Do I need a special cgi?

查看:95
本文介绍了如何使我的网站能够接收电子邮件.我需要特殊的CGI吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使我的网站能够接收电子邮件.我需要特殊的cgi吗?

How do I make my website able to receive e-mails. Do I need a special cgi?

推荐答案

CGI是石器时代.从性能和其他角度来看,这是有问题的;至少在许多应用程序中,它在开发和支持方面也很尴尬.有更好的技术随时可用.

您可以使用一种服务器端技术,例如ASP.NET,PHP(非常基本,但最受欢迎),带有WSGI的Python(我的意思是,最好不要使用CGI风格),Iron Python,Iron Ruby-你给它起名字.这些技术中有许多很容易获得.对于Apache,它们以Apache模块"的形式提供,例如"mod_mono"(对于基于Mono平台的ASP.NET),"mod_php"等.

在客户端,您可以使用HTTP方法"post"仅拥有一个Web表单.它应该具有制作电子邮件地址,其他标题,选项和消息内容所需的所有输入字段.您的服务器端应该收到请求,分析发布数据(需要格外小心:永远不要按原样使用此数据,而应彻底分析其合理性,否则黑客入侵您的服务器就可以在几分钟内完成发送垃圾邮件的僵尸! ),并实际上从服务器端发送消息.

您可以在Web上找到很多代码示例,但是您应该决定要使用的服务器端技术.

—SA
CGI is a stone-age. It is problematic from the performance and other standpoints; it is also awkward in development and support, at least — in many applications. There are much better technologies readily available.

You can use one of server-side technologies, such as ASP.NET, PHP (very rudimentary but on of the most popular), Python with with WSGI (I mean, better be not used CGI style), Iron Python, Iron Ruby — you name it. Many of these technologies are readily available. In case of Apache, they are available in the form of Apache "modules", such as "mod_mono" (for ASP.NET based on Mono platform), "mod_php", etc.

On the client-side, you can have just a Web form using the HTTP method "post". It should have all input fields needed to make e-mail addresses, other headers, options and message contents. You server side should get the request, analyze post data (extra care needed: this data should never be used as is but thoroughly analyzed for sanity, otherwise hacking your server to make is a zombie sending spam could be accomplished in a matter of minutes!) and actually sends the message from the server side.

You can find plenty of code samples on the Web, but you should decide on the server-side technology to use.

—SA


此问题与C ++无关.

您需要从托管服务获得支持.
This question has nothing to do with C++.

You need to get support from your hosting service.


这篇关于如何使我的网站能够接收电子邮件.我需要特殊的CGI吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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