Hey all,
I keep getting an exception when I try to send an automated email message in an asp.net 2.0 application:
======================================================================
Date: 6/27/2006
Time: 9:21:53 AM
User: N/A
Computer:
Description:
System.Net.Mail.SmtpException: Failure sending mail. --> System.Net.WebException: Unable to connect to the remote server --> System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
-- End of inner exception stack trace --
at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout)
at System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback)
at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback)
at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout)
at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port)
at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port)
at System.Net.Mail.SmtpClient.GetConnection()
at System.Net.Mail.SmtpClient.Send(MailMessage message)
-- End of inner exception stack trace --
at System.Net.Mail.SmtpClient.Send(MailMessage message)
======================================================================
I think that I have the SMTP object code and MailMessage code set up correctly...I read somewhere that I should check the firewall settings or anti-virus settings. I don't remember having this much trouble with simple web mail before though!
Thanks in advance.
Doug
well..
turns out that they have all of the smtp stuff turned off here..
that's the problem
Was about to say it seems to be a mail server problem. If you are testing this from your local machine you may be able to use localhost as a mail server as a temporary solution. I know that's what I did when my school wouldn't let me relay mail through their server for a project. Worked fine for me :)
GREAT...
thanks.
0 comments:
Post a Comment