'System.Web.Mail.SmtpMail.Private Sub New()' is not accessible in this context because it is 'Private'.

Nov 11 2004 3:16 PM
I get the message: 'System.Web.Mail.SmtpMail.Private Sub New()' is not accessible in this context because it is 'Private'. This is my code: Line 2: <%@ Import NameSpace="System.Web.Mail.SmtpMail" %> Line 3: <% Line 4: Dim objSMTP as New System.Web.Mail.SmtpMail() Line 5: Dim ret as object Line 6: objSMTP.Send("[email protected]","[email protected]", "Demo ASP Mail Header", "Demo ASP Mail Body") How do I make it public? Thanks, Bobby

Answers (1)