Email through VB code
-
I wanna send Email using Vb.net code is......... Dim message As New MailMessage(txtTo.Text, txtFrom.Text, txtSubject.Text, txtBody.Text) Dim emailClient As New SmtpClient(txtSMTPServer.Text) emailClient.Send(message) litStatus.Text = "Message Sent" Catch ex As Exception litStatus.Text = ex.ToString() Can anyone plz help me out what is the input of txtSMTPServer textbox as i am a Beiggner
-
I wanna send Email using Vb.net code is......... Dim message As New MailMessage(txtTo.Text, txtFrom.Text, txtSubject.Text, txtBody.Text) Dim emailClient As New SmtpClient(txtSMTPServer.Text) emailClient.Send(message) litStatus.Text = "Message Sent" Catch ex As Exception litStatus.Text = ex.ToString() Can anyone plz help me out what is the input of txtSMTPServer textbox as i am a Beiggner
To use this method you will need access to a SMTP server. txtSMTPServer is the name or IP address of the SMTP server.