Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Email sendTo problem

$
0
0
Ok so I'm working on an email client in VB.NET.

I've done a simple one before with the email address and password coded in, but this time I'm trying to have the user input their gmail login when they try to send, and get the address to send to from a text box.

I delcaired the variable for the send to address
Dim sendTo As New MailAddress(txtTo)

But Visual Studio says it cannot convert a string for the address... But when I did it the first time with
Dim sendTo As New MailAddress("myemail.@email.com")

it worked fine... Any idea how to make it take the address from the text box?

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>