windows 设置本地 SMTP 和 POP3 以测试邮件发送和接收循环
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6716827/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Set up local SMTP and POP3 for testing mail send and receive loop
提问by ProfK
I would like to have alternate SMTP and POP3 servers on my local machine, for testing codethat sends mails and waits for a response, even when I'm offline. GPRS rates in SA are quite prohibitive, so I try and avoid them where possible. I would like to have a test SMTP address instead of my routine Google one, and that SMTP server must be able to send mail to my local POP3 server, where my mail client can retrieve that mail.
我想在我的本地机器上有备用的 SMTP 和 POP3 服务器,用于测试发送邮件和等待响应的代码,即使我处于离线状态。SA 中的 GPRS 费率非常高,所以我尽量避免使用它们。我想要一个测试 SMTP 地址而不是我的常规 Google 地址,并且该 SMTP 服务器必须能够将邮件发送到我的本地 POP3 服务器,我的邮件客户端可以在那里检索该邮件。
How can I go about this on Windows 7 Home Premium?
我该如何在 Windows 7 Home Premium 上解决这个问题?
采纳答案by sgmoore
I'm assuming your program that sends email can specify the smtp server address.
我假设您发送电子邮件的程序可以指定 smtp 服务器地址。
If so, then you need to install your own personal mailserver and configure your program to use localhost (127.0.0.1) as your smtp server. (When I say personal, I mean in the sense that you want something which does not have heavy system requirements.)
如果是这样,那么您需要安装您自己的个人邮件服务器并将您的程序配置为使用 localhost (127.0.0.1) 作为您的 smtp 服务器。(当我说个人时,我的意思是你想要一些对系统要求不高的东西。)
Years ago (before broadband and gmail) I used Surgemail (from http://netwinsite.com/surgemail/) on my home computer (It was free for up to 5 users)
几年前(在宽带和 gmail 之前)我在我的家用电脑上使用 Surgemail(来自http://netwinsite.com/surgemail/)(最多 5 个用户免费)
But there are loads or others, for example http://www.hmailserver.comor Mercury 32 (from http://www.pmail.com/overviews/ovw_mercwin.htm)
但是有负载或其他,例如http://www.hmailserver.com或 Mercury 32(来自http://www.pmail.com/overviews/ovw_mercwin.htm)
You might think this is overkill, as these programs will probably do much more than you need, but I was surprised at how much they can do without needing a high spec machine. (From example, I was probably running Surgemail on a Pentium III with 1Gb of Ram)
您可能认为这有点矫枉过正,因为这些程序可能会做的比您需要的多得多,但我很惊讶它们不需要高规格机器就能做这么多。(例如,我可能在具有 1Gb 内存的 Pentium III 上运行 Surgemail)