Author: mhabersack
Date: 2007-11-09 07:59:54 -0500 (Fri, 09 Nov 2007)
New Revision: 89311
Modified:
trunk/mcs/class/System.Web/System.Web.Mail/ChangeLog
trunk/mcs/class/System.Web/System.Web.Mail/SmtpClient.cs
Log:
2007-11-09 Marek Habersack <[EMAIL PROTECTED]>
* SmtpClient.cs: Connect only after reading in the fields that may
specify the port to connect to. Fixes bug #340501.
Modified: trunk/mcs/class/System.Web/System.Web.Mail/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Mail/ChangeLog 2007-11-09
12:52:21 UTC (rev 89310)
+++ trunk/mcs/class/System.Web/System.Web.Mail/ChangeLog 2007-11-09
12:59:54 UTC (rev 89311)
@@ -1,6 +1,7 @@
2007-11-09 Marek Habersack <[EMAIL PROTECTED]>
- * SmtpClient.cs: formatting
+ * SmtpClient.cs: Connect only after reading in the fields that may
+ specify the port to connect to. Fixes bug #340501.
Mon Jul 9 13:04:37 CEST 2007 Paolo Molaro <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/System.Web/System.Web.Mail/SmtpClient.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Mail/SmtpClient.cs 2007-11-09
12:52:21 UTC (rev 89310)
+++ trunk/mcs/class/System.Web/System.Web.Mail/SmtpClient.cs 2007-11-09
12:59:54 UTC (rev 89311)
@@ -54,7 +54,6 @@
public SmtpClient( string server ) {
this.server = server;
- Connect();
}
// make the actual connection
@@ -117,7 +116,8 @@
private void StartSend(MailMessageWrapper msg)
{
ReadFields(msg);
-
+ Connect();
+
// read the server greeting
smtp.ReadResponse();
smtp.CheckForStatusCode( 220 );
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches