Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
System.Web.Mail unknown references in VS 2005
Message
De
06/12/2005 15:52:25
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Migration
Titre:
System.Web.Mail unknown references in VS 2005
Divers
Thread ID:
01075481
Message ID:
01075481
Vues:
48
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform