Im getting an error using this code below. I have tried multiple ways and still im getting an error. Any help would be very much appreciated
Dim email As New MailMessage
**Problem:** email.From.Address = "test@yahoo.com"
Also tried email.From.Address.add("test@yahoo.com")
You need to create a new MailAddress Object. In C# it is:
email.From = new MailAddress(“test@yahoo.com”);