Merge pull request #2400 from esdrubal/extrahead
[mono.git] / mcs / class / System.Web / System.Web.Mail / SmtpMail.cs
index 0273f6ae1b46c12c499019445a1196bce6b059e0..3085a930752e064d21b8e45383793e6e4d0f7acc 100644 (file)
@@ -37,20 +37,16 @@ using System.Security.Permissions;
 namespace System.Web.Mail
 {
        // CAS
-       [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
-       [AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
-#if NET_2_0
-       [Obsolete ("The recommended alternative is System.Net.Mail.SmtpClient.")]
-#endif
+       [Obsolete ("The recommended alternative is System.Net.Mail.SmtpClient. http://go.microsoft.com/fwlink/?linkid=14202")]
        public class SmtpMail
        {
-               private static string smtpServer = "localhost";
+               static string smtpServer = "localhost";
                
-               // Constructor          
-               private SmtpMail ()
+               // Constructor
+               SmtpMail ()
                {
                        /* empty */
-               }               
+               }
 
                // Properties
                public static string SmtpServer {