I have the following code...
Const ToAddress As String = username.Text & "@gmail.com"
which sets to ToAddress to be used in on my Net.Mail.MailMessage that is to be created with the following constructor
Dim mm As New Net.Mail.MailMessage(username.Text, ToAddress
)
which takes in a string and a constant string. But I get an error here
Const ToAddress As String = **username.Text** & "@gmail.com"
that says : constant expression required