I am looking for a free test smptp server which can save emails in to files for my development tests. Since my development environment is windows I prefer test email server to run on windows but I can consider to install any other linux based alternatives.
Check whether there is network access from CSO to the SMTP server. Check whether the firewall is blocking SMTP traffic to SMTP server or whether the ports are blocked. If the server settings and authentication settings are correct, check whether the firewall is blocking port 587 and 465 and SMTP traffic.
Installing SMTP Service on Windows ServerInstalling an SMTP service is an easy task on Windows server as this is an in-built feature of the server. We can initiate the installation process through the Server Manager.
There are a few:
Or you can also set it up in your web.config to just store the e-mails in the file system (the config way of what "silky" has proposed in code):
<system.net> <mailSettings> <smtp deliveryMethod="SpecifiedPickupDirectory"> <specifiedPickupDirectory pickupDirectoryLocation="c:\temp\mails\"/> </smtp> </mailSettings> </system.net>
Marc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With