It may very well be my host definition. I will give all information I can.
This is with SmarterMail. It is running on it's own internal web with is at
http://127.0.0.1:9998
First I configured the IIS7 SMTP E-Mail
E-mail address: (e-mail address removed)
Deliver e-mail to SMTP server:
http://127.0.0.1:9998
Port: 25
Authetication Settings: Not required (I'm not clear on if this should be the
Smarter Mail admin username and password).
Then I modified the web.config:
<system.net>
<mailSettings>
<smtp
[email protected]>
<network host="localhost" defaultCredentials="true" />
</smtp>
</mailSettings>
</system.net>
Then I sent the email from within the web application running locally:
An existing connection was forcibly closed by the remote host
Stack Trace:
[SocketException (0x2746): An existing connection was forcibly closed by the
remote host]
System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32
size, SocketFlags socketFlags) +1044443
System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32
size) +119
[IOException: Unable to read data from the transport connection: An existing
connection was forcibly closed by the remote host.]
System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32
size) +267
System.Net.DelegatedStream.Read(Byte[] buffer, Int32 offset, Int32 count)
+41
System.Net.BufferedReadStream.Read(Byte[] buffer, Int32 offset, Int32
count) +96
System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller,
Boolean oneLine) +280
System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller)
+26
System.Net.Mail.SmtpReplyReader.ReadLine() +13
System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port)
+802
System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) +316
System.Net.Mail.SmtpClient.GetConnection() +42
System.Net.Mail.SmtpClient.Send(MailMessage message) +1485
This is what is in the SmarterMail smtpLog:
06:41:36 System.Net.Sockets.SocketException: An address incompatible with
the requested protocol was used
at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot,
SocketAddress socketAddress)
at System.Net.Sockets.Socket.Bind(EndPoint localEP)
at TcpServerLib.Pooled.PooledTcpServer.StartListening(IPEndPoint
ipEndPoint)
06:41:36 System.Net.Sockets.SocketException: An address incompatible with
the requested protocol was used
at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot,
SocketAddress socketAddress)
at System.Net.Sockets.Socket.Bind(EndPoint localEP)
at TcpServerLib.Pooled.PooledTcpServer.StartListening(IPEndPoint
ipEndPoint)
Does anything stand out here that I need to address to get SMTP up and
running?