Hi all
Iam trying to code my Email web form to enable it to send emails . The code seems correct except that I get an error when declaring mailMessage
as in Dim MM as MailMessage
MailMessage is underlined and Iam getting an error saying "MailMessage is ambigious" and something about a namespace. Here is my code below please assist?
Imports System
Imports System.Web.Mail
Imports System.Net.Mail
Imports System.Net
Imports Microsoft.SqlServer
Imports System.Net.Mail.MailMessage
Imports System.Data.SqlClient
Imports System.Web.Profile
Imports System.Data
Imports System.Configuration
Imports System.Web
Imports System.Web.Security
Imports System.IO
Imports System.Net.Mail.SmtpClient
Partial Class Email
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Go to the complete details ...