How can I get SMTP to work on a Windows 7 development box? I used to just be able to turn on the IIS SMTP server on Windows XP. Is SMTP not included with Windows 7? If so, what can I use instead as a free relay mechanism?
如何让SMTP在Windows 7开发盒上工作?我以前只能在Windows XP上打开IIS SMTP服务器。 SMTP 7不包含在Windows 7中吗?如果是这样,我可以使用什么作为免费中继机制呢?
7 个解决方案
#1
SMTP isn't included with Windows Vista, either - you'll have to download and install a free third-party SMTP server. There are a number available - http://www.softstack.com/freesmtp.html being one.
Windows Vista中不包含SMTP - 您必须下载并安装免费的第三方SMTP服务器。有一些可用 - http://www.softstack.com/freesmtp.html是一个。
UPDATE: Some more options - Vista's IIS Instance doesn't have SMTP (Solutions?)
更新:更多选项 - Vista的IIS实例没有SMTP(解决方案?)
#2
If you are developing in ASP.net using the built-in mail libraries, a lesser-known configuration setting is to use the following:
如果您使用内置邮件库在ASP.net中进行开发,则一个鲜为人知的配置设置是使用以下内容:
<configuration>
. . . more config stuff here . . .
<system.net>
<mailSettings>
<smtp deliveryMethod="SpecifiedPickupDirectory" from="noreply@testdomain.org">
<specifiedPickupDirectory pickupDirectoryLocation="c:\smtp\"/>
</smtp>
</mailSettings>
</system.net>
</configuration>
All your application generated emails will be dumped into this directory during development. No smtp server needed!
在开发期间,您的所有应用程序生成的电子邮件都将被转储到此目录中。不需要smtp服务器!
#3
You can use Google's as a free relay, however you need to have a Google account.
您可以将Google用作免费中继,但您需要拥有Google帐户。
smtp.gmail.com
Just make sure the ports are setup as defined for your account.
只需确保按照您的帐户定义设置端口。
#4
According to this post, the issue an SMTP server was included in IIS6, but has been removed in IIS7. This thread suggests the Remote Server Administration Tools (which include a SMTP server), as long as you don't have the Home edition of Windows.
根据这篇文章,问题是一个SMTP服务器包含在IIS6中,但已在IIS7中删除。只要您没有Windows的Home版本,此线程就会建议远程服务器管理工具(包括SMTP服务器)。
#5
I use "Free SMTP Server" from Softstack.
我使用Softstack的“免费SMTP服务器”。
http://www.softstack.com/freesmtp.html
HTH
#6
For those still coming across this, I've played with the two servers suggested above (freesmtp and hmailserver). Freesmtp is very quick and simple and worked out the box but only lets you send 10 emails a day without paying $69. hmailserver takes longer to set up (although still fairly painless) but has more features and hasn't asked me for money (yet).
对于那些仍然遇到这种情况的人,我使用了上面建议的两个服务器(freesmtp和hmailserver)。 Freesmtp是非常快速和简单的,并且可以解决方案,但只允许您每天发送10封电子邮件而无需支付69美元。 hmailserver需要更长的时间来设置(虽然仍然相当无痛),但有更多的功能,并没有向我要钱(还)。
#7
I had the same problem, and I installed hMailServer.
http://hmailserver.com/
我有同样的问题,我安装了hMailServer。 http://hmailserver.com/
#1
SMTP isn't included with Windows Vista, either - you'll have to download and install a free third-party SMTP server. There are a number available - http://www.softstack.com/freesmtp.html being one.
Windows Vista中不包含SMTP - 您必须下载并安装免费的第三方SMTP服务器。有一些可用 - http://www.softstack.com/freesmtp.html是一个。
UPDATE: Some more options - Vista's IIS Instance doesn't have SMTP (Solutions?)
更新:更多选项 - Vista的IIS实例没有SMTP(解决方案?)
#2
If you are developing in ASP.net using the built-in mail libraries, a lesser-known configuration setting is to use the following:
如果您使用内置邮件库在ASP.net中进行开发,则一个鲜为人知的配置设置是使用以下内容:
<configuration>
. . . more config stuff here . . .
<system.net>
<mailSettings>
<smtp deliveryMethod="SpecifiedPickupDirectory" from="noreply@testdomain.org">
<specifiedPickupDirectory pickupDirectoryLocation="c:\smtp\"/>
</smtp>
</mailSettings>
</system.net>
</configuration>
All your application generated emails will be dumped into this directory during development. No smtp server needed!
在开发期间,您的所有应用程序生成的电子邮件都将被转储到此目录中。不需要smtp服务器!
#3
You can use Google's as a free relay, however you need to have a Google account.
您可以将Google用作免费中继,但您需要拥有Google帐户。
smtp.gmail.com
Just make sure the ports are setup as defined for your account.
只需确保按照您的帐户定义设置端口。
#4
According to this post, the issue an SMTP server was included in IIS6, but has been removed in IIS7. This thread suggests the Remote Server Administration Tools (which include a SMTP server), as long as you don't have the Home edition of Windows.
根据这篇文章,问题是一个SMTP服务器包含在IIS6中,但已在IIS7中删除。只要您没有Windows的Home版本,此线程就会建议远程服务器管理工具(包括SMTP服务器)。
#5
I use "Free SMTP Server" from Softstack.
我使用Softstack的“免费SMTP服务器”。
http://www.softstack.com/freesmtp.html
HTH
#6
For those still coming across this, I've played with the two servers suggested above (freesmtp and hmailserver). Freesmtp is very quick and simple and worked out the box but only lets you send 10 emails a day without paying $69. hmailserver takes longer to set up (although still fairly painless) but has more features and hasn't asked me for money (yet).
对于那些仍然遇到这种情况的人,我使用了上面建议的两个服务器(freesmtp和hmailserver)。 Freesmtp是非常快速和简单的,并且可以解决方案,但只允许您每天发送10封电子邮件而无需支付69美元。 hmailserver需要更长的时间来设置(虽然仍然相当无痛),但有更多的功能,并没有向我要钱(还)。
#7
I had the same problem, and I installed hMailServer.
http://hmailserver.com/
我有同样的问题,我安装了hMailServer。 http://hmailserver.com/