Author: atsushi
Date: 2006-12-11 02:27:19 -0500 (Mon, 11 Dec 2006)
New Revision: 69298

Modified:
   trunk/mcs/class/System/System.Net.Mail/ChangeLog
   trunk/mcs/class/System/System.Net.Mail/SmtpClient.cs
Log:
2006-12-12  Atsushi Enomoto  <[EMAIL PROTECTED]>

        * SmtpClient.cs : use CONFIGURATION_DEP when it is
          System.Configuration.dll dependent.



Modified: trunk/mcs/class/System/System.Net.Mail/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.Net.Mail/ChangeLog    2006-12-11 06:55:20 UTC 
(rev 69297)
+++ trunk/mcs/class/System/System.Net.Mail/ChangeLog    2006-12-11 07:27:19 UTC 
(rev 69298)
@@ -1,3 +1,8 @@
+2006-12-12  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * SmtpClient.cs : use CONFIGURATION_DEP when it is
+         System.Configuration.dll dependent.
+
 2006-12-10  David Elkind  <[EMAIL PROTECTED]>
 
        * Attachment.cs - proper file name handling added

Modified: trunk/mcs/class/System/System.Net.Mail/SmtpClient.cs
===================================================================
--- trunk/mcs/class/System/System.Net.Mail/SmtpClient.cs        2006-12-11 
06:55:20 UTC (rev 69297)
+++ trunk/mcs/class/System/System.Net.Mail/SmtpClient.cs        2006-12-11 
07:27:19 UTC (rev 69298)
@@ -85,6 +85,7 @@
                }
 
                public SmtpClient (string host, int port) {
+#if CONFIGURATION_DEP
                        SmtpSection cfg = (SmtpSection) 
ConfigurationManager.GetSection ("system.net/mailSettings/smtp");
 
                        if (cfg != null) {
@@ -102,6 +103,7 @@
                                if (cfg.From != null)
                                        defaultFrom = new MailAddress 
(cfg.From);
                        }
+#endif
 
                        if (!String.IsNullOrEmpty (host))
                                this.host = host;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to