Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
System.Web.Mail unknown references in VS 2005
Message
From
06/12/2005 15:52:25
 
 
To
All
General information
Forum:
ASP.NET
Category:
Migration
Title:
System.Web.Mail unknown references in VS 2005
Miscellaneous
Thread ID:
01075481
Message ID:
01075481
Views:
49
I am still in the process of adjusting the code to resolve all those unkown references after I migrated to VS 2005. I have this code:
Imports System.Web.Mail
Imports System.IO

Public Class InternetSendEmail

    Inherits ErrorHandler

    Public Shared cFrom As String
    Public Shared cFromName As String
    Public Shared cSubject As String
    Public Shared cTo As String
    Public Shared cCC As String
    Public Shared cBody As String
    Public Shared cToName As String
    Public Shared cFile As String
    Public Shared cCCName As String
    Public Shared cBCC As String
    Public Shared cBCCName As String
    Public Shared cSMTP As String

    ' Send an email
    Public Shared Function SendEmail()
        Dim loEmail As MailMessage
        Dim lcFile As String
        ErrorInitialize()

        loEmail = New MailMessage
        loEmail.BodyFormat = MailFormat.Text
The line:
Dim loEmail As MailMessage
provides an unknown reference on MailMessage. However, MailMessage exists under System.Web.Mail. Even if I put the full assignment, I still have a problem on that line. Can someone explain me why this isn't working anymore?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform