How can I get SMTP to work on Windows 7 (developer box). I used to just be able to turn it on for a windows XP box. Is SMTP not included on windows 7? If so, what can I use instead as a free relay mechanism.
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.
UPDATE: Some more options - http://stackoverflow.com/questions/341651/vistas-iis-instance-doesnt-have-smtp-solutions
You can use Google's as a free relay, however you need to have a Google account.
smtp.gmail.com
Just make sure the ports are setup as defined for your account.
If you are developing in ASP.net using the built-in mail libraries, a lesser-known configuration setting is to use the following:
<configuration>
. . . more config stuff here . . .
<system.net>
<mailSettings>
<smtp deliveryMethod="SpecifiedPickupDirectory" from="[email protected]">
<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!
that pickup directory works in the sense that the program generates some files that end up in that directory - but they don't go anywhere. how does one get them to get emailed from that directory?