hello...
I want to send mail. I got the code for sending mail but here i have to specify the IP of smtpClient. How will i specify this property.
I got the following code:
what i have to specify in the txtSMTPServer textbox
please give me the code of this one
I want to send mail. I got the code for sending mail but here i have to specify the IP of smtpClient. How will i specify this property.
I got the following code:
Code:
MailMessage message = new MailMessage(txtFrom.Text, txtTo.Text, txtSubject.Text, txtBody.Text); SmtpClient emailClient = new SmtpClient(txtSMTPServer.Text); emailClient.Send(message); litStatus.Text = "Message Sent";
please give me the code of this one
Comment