Author: GPErtel | Posted on: 7/29/2010 4:46:13 PM | Views : 287

I have used the example below in another functioning form.  The first form is working fine; however in the second form (using the same code), it indicates that "Name "UsersEmail" is not declared.  I been working at this for the last 4 days.
 
        '!!! UPDATE THIS VALUE TO YOUR EMAIL ADDRESS
        Const ToAddress As String = "Glenn_Ertel@OnslowCountyNC.gov"
        '(1) Create the MailMessage instance
        Dim mm As New MailMessage(UsersEmail.Text, ToAddress)
        '(2) Assign the MailMessage's properties
        Dim CCAddress = UsersEmail.Text
        mm.Subject = "REQUEST F ...

Go to the complete details ...