Outlook Outlook Express Problem

SHL

Joined
Jan 17, 2007
Messages
1
Reaction score
0
I want to send mail by using ASP.net 2.0. I have written the following code:


Dim strTo As String = "(e-mail address removed)"
Dim strFrom As String = "(e-mail address removed)"
Dim strSubject As String = "Hi Chris"
Dim smtp As New SmtpClient

Try
smtp.Host = "localhost"
smtp.Send(strFrom, strTo, strSubject, "A real nice body text here")
litStatus.Text = "Message Sent"

Catch ex As Exception
litStatus.Text = ex.ToString()
End Try


After I run the code, I found mail message have been created in Queue folder in the Inetpub folder.

However, when I try to access it by using Microsoft Outlook Express 6, it prompts the following errors:

Your server has unexpectedly terminated the connection. Possible causes for this include server problems, network problems, or a long period of inactivity. Account: 'Work', Server: 'localhost', Protocol: POP3, Port: 110, Secure(SSL): No, Error Number: 0x800CCC0F



I have tried to read others’ solution for this error. Most of them advise to disable the antivirus Mail Scanning and disable firewall. However, even I try out their advise, I still get the error message.



Any suggestion?

Thanks
 
Back
Top