فهرست منبع

* SmtpMail.cs: removed TARGET_JVM part from Send method.

svn path=/trunk/mcs/; revision=58344
Vladimir Krasnov 20 سال پیش
والد
کامیت
65c29ca847
2فایلهای تغییر یافته به همراه4 افزوده شده و 10 حذف شده
  1. 4 0
      mcs/class/System.Web/System.Web.Mail/ChangeLog
  2. 0 10
      mcs/class/System.Web/System.Web.Mail/SmtpMail.cs

+ 4 - 0
mcs/class/System.Web/System.Web.Mail/ChangeLog

@@ -1,3 +1,7 @@
+2006-03-23  Vladimir Krasnov  <[email protected]>
+
+	* SmtpMail.cs: removed TARGET_JVM part from Send method.
+
 2006-03-23  Vladimir Krasnov  <[email protected]>
 
 	* MailMessageWrapper.cs: fixed Fields property, casting to string

+ 0 - 10
mcs/class/System.Web/System.Web.Mail/SmtpMail.cs

@@ -70,17 +70,7 @@ namespace System.Web.Mail
 			// access to properties and to add some functionality
 			MailMessageWrapper messageWrapper = new MailMessageWrapper( message );
 			
-#if TARGET_JVM
-			string currentSmtpServer = smtpServer;
-			if (currentSmtpServer == "localhost")
-			{
-				java.net.InetAddress address = java.net.InetAddress.getLocalHost();
-				currentSmtpServer = address.getHostAddress();
-			}
-			SmtpClient smtp = new SmtpClient (currentSmtpServer);
-#else
 			SmtpClient smtp = new SmtpClient (smtpServer);
-#endif
 			
 			smtp.Send (messageWrapper);